mark tests as public

This commit is contained in:
Shish
2015-09-26 11:17:13 +01:00
parent c54e336695
commit 8c1e3bc92a
49 changed files with 97 additions and 97 deletions

View File

@@ -1,6 +1,6 @@
<?php
class SetupTest extends ShimmiePHPUnitTestCase {
function testNiceUrlsTest() {
public function testNiceUrlsTest() {
# 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
@@ -9,27 +9,27 @@ class SetupTest extends ShimmiePHPUnitTestCase {
$this->assert_no_content("\n");
}
function testAuthAnon() {
public function testAuthAnon() {
$this->get_page('setup');
$this->assert_response(403);
$this->assert_title("Permission Denied");
}
function testAuthUser() {
public function testAuthUser() {
$this->log_in_as_user();
$this->get_page('setup');
$this->assert_response(403);
$this->assert_title("Permission Denied");
}
function testAuthAdmin() {
public function testAuthAdmin() {
$this->log_in_as_admin();
$this->get_page('setup');
$this->assert_title("Shimmie Setup");
$this->assert_text("General");
}
function testAdvanced() {
public function testAdvanced() {
$this->log_in_as_admin();
$this->get_page('setup/advanced');
$this->assert_title("Shimmie Setup");