2008-10-11 07:09:42 +00:00
|
|
|
<?php
|
2009-07-15 02:42:18 +01:00
|
|
|
class AdminPageTest extends ShimmieWebTestCase {
|
2008-10-18 06:39:46 +00:00
|
|
|
function testAuth() {
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->get_page('admin');
|
2008-10-11 07:09:42 +00:00
|
|
|
$this->assertResponse(403);
|
|
|
|
$this->assertTitle("Permission Denied");
|
|
|
|
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->log_in_as_user();
|
|
|
|
$this->get_page('admin');
|
2008-10-11 07:09:42 +00:00
|
|
|
$this->assertResponse(403);
|
|
|
|
$this->assertTitle("Permission Denied");
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->log_out();
|
2008-10-11 07:09:42 +00:00
|
|
|
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->log_in_as_admin();
|
|
|
|
$this->get_page('admin');
|
2008-10-11 07:09:42 +00:00
|
|
|
$this->assertTitle("Admin Tools");
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->log_out();
|
2008-10-11 07:09:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|