whitespace...
This commit is contained in:
parent
11873e9601
commit
738fa3ef1e
@ -1,23 +1,23 @@
|
|||||||
<?php
|
<?php
|
||||||
class UserPageTest extends WebTestCase {
|
class UserPageTest extends WebTestCase {
|
||||||
function testUserPage() {
|
function testUserPage() {
|
||||||
$this->get(TEST_BASE.'/user');
|
$this->get(TEST_BASE.'/user');
|
||||||
$this->assertTitle("Anonymous's Page");
|
$this->assertTitle("Anonymous's Page");
|
||||||
$this->assertNoText("Options");
|
$this->assertNoText("Options");
|
||||||
$this->assertNoText("More Options");
|
$this->assertNoText("More Options");
|
||||||
|
|
||||||
$this->get(TEST_BASE.'/user/Shish');
|
$this->get(TEST_BASE.'/user/Shish');
|
||||||
$this->assertTitle("Shish's Page");
|
$this->assertTitle("Shish's Page");
|
||||||
|
|
||||||
$this->get(TEST_BASE.'/user/MauMau');
|
$this->get(TEST_BASE.'/user/MauMau');
|
||||||
$this->assertTitle("No Such User");
|
$this->assertTitle("No Such User");
|
||||||
|
|
||||||
$this->assertText("Login");
|
$this->assertText("Login");
|
||||||
$this->setField('user', USER_NAME);
|
$this->setField('user', USER_NAME);
|
||||||
$this->setField('pass', USER_PASS);
|
$this->setField('pass', USER_PASS);
|
||||||
$this->click("Log In");
|
$this->click("Log In");
|
||||||
// should be on the user page
|
// should be on the user page
|
||||||
$this->assertTitle("test's Page");
|
$this->assertTitle("test's Page");
|
||||||
$this->assertText("Options");
|
$this->assertText("Options");
|
||||||
$this->assertNoText("More Options");
|
$this->assertNoText("More Options");
|
||||||
$this->click('Log Out');
|
$this->click('Log Out');
|
||||||
@ -27,7 +27,7 @@ class UserPageTest extends WebTestCase {
|
|||||||
$this->setField('pass', ADMIN_PASS);
|
$this->setField('pass', ADMIN_PASS);
|
||||||
$this->click("Log In");
|
$this->click("Log In");
|
||||||
// should be on the user page
|
// should be on the user page
|
||||||
$this->assertTitle(ADMIN_NAME+"'s Page");
|
$this->assertTitle(ADMIN_NAME+"'s Page");
|
||||||
$this->assertText("Options");
|
$this->assertText("Options");
|
||||||
$this->assertText("More Options");
|
$this->assertText("More Options");
|
||||||
$this->click('Log Out');
|
$this->click('Log Out');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user