This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/setup/test.php

32 lines
829 B
PHP
Raw Normal View History

<?php
class SetupTest extends SCoreWebTestCase {
function testAuth() {
2012-03-09 22:08:55 +00:00
$this->get_page('setup');
2009-08-19 00:28:48 +00:00
$this->assert_response(403);
$this->assert_title("Permission Denied");
2009-10-09 11:27:13 +00:00
# XXX: this only checks that the text is "ok", to check
# for a bug where it was coming out as "\nok"; it doesn't
# check that niceurls actually work
$raw = $this->get_page('nicetest');
$this->assertTrue($raw == "ok");
$this->log_in_as_user();
2012-03-09 22:08:55 +00:00
$this->get_page('setup');
2009-08-19 00:28:48 +00:00
$this->assert_response(403);
$this->assert_title("Permission Denied");
$this->log_out();
$this->log_in_as_admin();
2012-03-09 22:08:55 +00:00
$this->get_page('setup');
2009-08-19 00:28:48 +00:00
$this->assert_title("Shimmie Setup");
$this->assert_text("General");
2009-09-27 14:48:38 +00:00
2012-03-09 22:08:55 +00:00
$this->get_page('setup/advanced');
2009-09-27 14:48:38 +00:00
$this->assert_title("Shimmie Setup");
$this->assert_text("thumb_quality");
$this->log_out();
}
}