cakephp2-php8/vendors/simpletest/test/real_sites_test.php
phpnut 57ef2eba9b merging changes from [428]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@430 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-07-30 02:26:59 +00:00

28 lines
No EOL
1.1 KiB
PHP

<?php
// $Id: real_sites_test.php,v 1.17 2005/05/29 18:37:26 lastcraft Exp
require_once(dirname(__FILE__) . '/../web_tester.php');
class LiveSitesTestCase extends WebTestCase {
function testLastCraft() {
$this->assertTrue($this->get('http://www.lastcraft.com'));
$this->assertResponse(array(200));
$this->assertMime(array('text/html'));
$this->clickLink('About');
$this->assertTitle('About Last Craft');
}
function testSourceforge() {
$this->assertTrue($this->get('http://sourceforge.net/'));
$this->setField('words', 'simpletest');
$this->assertTrue($this->clickImageByName('imageField'));
$this->assertTitle('SourceForge.net: Search');
$this->assertTrue($this->clickLink('SimpleTest'));
$this->clickLink('statistics');
$this->assertWantedText('SimpleTest: Statistics');
$this->assertTrue($this->setField('mode', 'All Time'));
$this->clickSubmit('Change View');
$this->assertWantedText('Mar 2003');
}
}
?>