2008-10-18 06:40:12 +00:00
|
|
|
<?php
|
2009-07-21 07:36:12 +01:00
|
|
|
class SetupTest extends SCoreWebTestCase {
|
2008-10-18 06:40:12 +00:00
|
|
|
function testAuth() {
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->get_page('setup');
|
2009-08-19 01:28:48 +01:00
|
|
|
$this->assert_response(403);
|
|
|
|
$this->assert_title("Permission Denied");
|
2008-10-18 06:40:12 +00:00
|
|
|
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->log_in_as_user();
|
|
|
|
$this->get_page('setup');
|
2009-08-19 01:28:48 +01:00
|
|
|
$this->assert_response(403);
|
|
|
|
$this->assert_title("Permission Denied");
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->log_out();
|
2008-10-18 06:40:12 +00:00
|
|
|
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->log_in_as_admin();
|
|
|
|
$this->get_page('setup');
|
2009-08-19 01:28:48 +01:00
|
|
|
$this->assert_title("Shimmie Setup");
|
|
|
|
$this->assert_text("General");
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->log_out();
|
2008-10-18 06:40:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|