forked from Cavemanon/cavepaintings
mark tests as public
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
class AdminPageTest extends ShimmiePHPUnitTestCase {
|
||||
function testAuth() {
|
||||
public function testAuth() {
|
||||
$this->get_page('admin');
|
||||
$this->assert_response(403);
|
||||
$this->assert_title("Permission Denied");
|
||||
@@ -16,7 +16,7 @@ class AdminPageTest extends ShimmiePHPUnitTestCase {
|
||||
$this->assert_title("Admin Tools");
|
||||
}
|
||||
|
||||
function testLowercase() {
|
||||
public function testLowercase() {
|
||||
$ts = time(); // we need a tag that hasn't been used before
|
||||
|
||||
$this->log_in_as_admin();
|
||||
@@ -37,7 +37,7 @@ class AdminPageTest extends ShimmiePHPUnitTestCase {
|
||||
}
|
||||
|
||||
# FIXME: make sure the admin tools actually work
|
||||
function testRecount() {
|
||||
public function testRecount() {
|
||||
$this->log_in_as_admin();
|
||||
$this->get_page('admin');
|
||||
$this->assert_title("Admin Tools");
|
||||
@@ -46,7 +46,7 @@ class AdminPageTest extends ShimmiePHPUnitTestCase {
|
||||
send_event(new AdminActionEvent('recount_tag_use'));
|
||||
}
|
||||
|
||||
function testDump() {
|
||||
public function testDump() {
|
||||
$this->log_in_as_admin();
|
||||
$this->get_page('admin');
|
||||
$this->assert_title("Admin Tools");
|
||||
@@ -57,7 +57,7 @@ class AdminPageTest extends ShimmiePHPUnitTestCase {
|
||||
//$this->assert_response(200);
|
||||
}
|
||||
|
||||
function testDBQ() {
|
||||
public function testDBQ() {
|
||||
$this->log_in_as_user();
|
||||
$image_id_1 = $this->post_image("tests/pbx_screenshot.jpg", "test");
|
||||
$image_id_2 = $this->post_image("tests/bedroom_workshop.jpg", "test2");
|
||||
|
||||
Reference in New Issue
Block a user