mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
57ef2eba9b
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@430 3807eeeb-6ff5-0310-8944-8be069107fe0
28 lines
No EOL
1.1 KiB
PHP
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');
|
|
}
|
|
}
|
|
?>
|