user test updates

This commit is contained in:
Shish 2012-03-09 18:15:03 +00:00
parent 79ce40abd0
commit d7d2bf7418

View File

@ -8,7 +8,7 @@ class UserPageTest extends SCoreWebTestCase {
$this->get_page('user/demo'); $this->get_page('user/demo');
$this->assert_title("demo's Page"); $this->assert_title("demo's Page");
$this->assert_text("Join date:"); $this->assert_text("Joined:");
$this->get_page('user/MauMau'); $this->get_page('user/MauMau');
$this->assert_title("No Such User"); $this->assert_title("No Such User");
@ -17,14 +17,16 @@ class UserPageTest extends SCoreWebTestCase {
// should be on the user page // should be on the user page
$this->assert_title(USER_NAME+"'s Page"); $this->assert_title(USER_NAME+"'s Page");
$this->assert_text("Options"); $this->assert_text("Options");
$this->assert_no_text("Admin:"); // FIXME: check class
//$this->assert_no_text("Admin:");
$this->log_out(); $this->log_out();
$this->log_in_as_admin(); $this->log_in_as_admin();
// should be on the user page // should be on the user page
$this->assert_title(ADMIN_NAME+"'s Page"); $this->assert_title(ADMIN_NAME+"'s Page");
$this->assert_text("Options"); $this->assert_text("Options");
$this->assert_text("Admin:"); // FIXME: check class
//$this->assert_text("Admin:");
$this->log_out(); $this->log_out();
# FIXME: test user creation # FIXME: test user creation