From 85e5c7250b0c4f5e5a24b093ce61495a10273652 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 26 Sep 2015 11:11:26 +0100 Subject: [PATCH] mark tests as public --- ext/admin/test.php | 12 ++++++------ ext/alias_editor/test.php | 2 +- ext/artists/test.php | 2 +- ext/ban_words/test.php | 2 +- ext/blocks/test.php | 2 +- ext/blotter/test.php | 6 +++--- ext/bookmarks/test.php | 2 +- ext/browser_search/test.php | 2 +- ext/bulk_add/test.php | 2 +- ext/comment/test.php | 8 ++++---- ext/danbooru_api/test.php | 2 +- ext/downtime/test.php | 2 +- ext/emoticons/test.php | 2 +- ext/et/test.php | 2 +- ext/ext_manager/test.php | 2 +- ext/favorites/test.php | 2 +- ext/featured/test.php | 2 +- ext/handle_404/test.php | 2 +- ext/handle_ico/test.php | 2 +- ext/handle_pixel/test.php | 2 +- ext/handle_svg/test.php | 2 +- ext/home/test.php | 2 +- ext/image_hash_ban/test.php | 2 +- ext/index/test.php | 4 ++-- ext/ipban/test.php | 2 +- ext/link_image/test.php | 2 +- ext/log_db/test.php | 2 +- ext/numeric_score/test.php | 2 +- ext/oekaki/test.php | 2 +- ext/pm/test.php | 4 ++-- ext/pools/test.php | 2 +- ext/random_image/test.php | 4 ++-- ext/rating/test.php | 2 +- ext/regen_thumb/test.php | 2 +- ext/report_image/test.php | 2 +- ext/res_limit/test.php | 8 ++++---- ext/setup/test.php | 2 +- ext/shimmie_api/test.php | 2 +- ext/site_description/test.php | 2 +- ext/sitemap/test.php | 2 +- ext/tag_edit/test.php | 6 +++--- ext/tag_history/test.php | 2 +- ext/tag_list/test.php | 4 ++-- ext/tips/test.php | 8 ++++---- ext/upload/test.php | 2 +- ext/user/test.php | 2 +- ext/view/test.php | 2 +- ext/wiki/test.php | 10 +++++----- ext/word_filter/test.php | 2 +- 49 files changed, 75 insertions(+), 75 deletions(-) diff --git a/ext/admin/test.php b/ext/admin/test.php index 3aad3d93..0e2d93eb 100644 --- a/ext/admin/test.php +++ b/ext/admin/test.php @@ -1,6 +1,6 @@ get_page('admin'); $this->assert_response(403); $this->assert_title("Permission Denied"); @@ -12,7 +12,7 @@ class AdminPageTest extends ShimmieWebTestCase { $this->log_out(); } - function testLowercase() { + public function testLowercase() { $ts = time(); // we need a tag that hasn't been used before $this->log_in_as_admin(); @@ -33,7 +33,7 @@ class AdminPageTest extends ShimmieWebTestCase { } # 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"); @@ -41,7 +41,7 @@ class AdminPageTest extends ShimmieWebTestCase { $this->log_out(); } - function testPurge() { + public function testPurge() { $this->log_in_as_admin(); $this->get_page('admin'); $this->assert_title("Admin Tools"); @@ -49,7 +49,7 @@ class AdminPageTest extends ShimmieWebTestCase { $this->log_out(); } - function testDump() { + public function testDump() { $this->log_in_as_admin(); $this->get_page('admin'); $this->assert_title("Admin Tools"); @@ -58,7 +58,7 @@ class AdminPageTest extends ShimmieWebTestCase { $this->log_out(); } - function testDBQ() { + public function testDBQ() { $this->log_in_as_user(); $image_id_1 = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "test"); $image_id_2 = $this->post_image("ext/simpletest/data/bedroom_workshop.jpg", "test2"); diff --git a/ext/alias_editor/test.php b/ext/alias_editor/test.php index 2aa3ab78..0d0f9ff0 100644 --- a/ext/alias_editor/test.php +++ b/ext/alias_editor/test.php @@ -1,6 +1,6 @@ get_page('alias/list'); $this->assert_title("Alias List"); diff --git a/ext/artists/test.php b/ext/artists/test.php index 767d764b..92dd2dbe 100644 --- a/ext/artists/test.php +++ b/ext/artists/test.php @@ -1,6 +1,6 @@ get_page("post/list/author=bob/1"); } diff --git a/ext/ban_words/test.php b/ext/ban_words/test.php index 37c0cfda..cb0f2037 100644 --- a/ext/ban_words/test.php +++ b/ext/ban_words/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $this->get_page("setup"); $this->set_field("_config_banned_words", "viagra\nporn\n\n/http:.*\.cn\//"); diff --git a/ext/blocks/test.php b/ext/blocks/test.php index d6f91a38..057e6cf0 100644 --- a/ext/blocks/test.php +++ b/ext/blocks/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $this->get_page("blocks/list"); diff --git a/ext/blotter/test.php b/ext/blotter/test.php index 20c321b0..b7a4fe80 100644 --- a/ext/blotter/test.php +++ b/ext/blotter/test.php @@ -1,13 +1,13 @@ log_in_as_admin(); $this->assert_text("Blotter Editor"); $this->click("Blotter Editor"); $this->log_out(); } - function testDenial() { + public function testDenial() { $this->get_page("blotter/editor"); $this->assert_response(403); $this->get_page("blotter/add"); @@ -16,7 +16,7 @@ class BlotterTest extends SCoreWebTestCase { $this->assert_response(403); } - function testAddViewRemove() { + public function testAddViewRemove() { $this->log_in_as_admin(); $this->get_page("blotter/editor"); diff --git a/ext/bookmarks/test.php b/ext/bookmarks/test.php index 66d41a96..4507bdc8 100644 --- a/ext/bookmarks/test.php +++ b/ext/bookmarks/test.php @@ -1,6 +1,6 @@ get_page("bookmark/add"); $this->get_page("bookmark/remove"); } diff --git a/ext/browser_search/test.php b/ext/browser_search/test.php index e0df2f92..0949046b 100644 --- a/ext/browser_search/test.php +++ b/ext/browser_search/test.php @@ -1,6 +1,6 @@ get_page("browser_search/please_dont_use_this_tag_as_it_would_break_stuff__search.xml"); $this->get_page("browser_search/test"); } diff --git a/ext/bulk_add/test.php b/ext/bulk_add/test.php index 3f57fe99..cf79783a 100644 --- a/ext/bulk_add/test.php +++ b/ext/bulk_add/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $this->get_page('admin'); diff --git a/ext/comment/test.php b/ext/comment/test.php index 1cae2054..553223cd 100644 --- a/ext/comment/test.php +++ b/ext/comment/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $this->get_page("setup"); $this->set_field("_config_comment_limit", "100"); @@ -8,7 +8,7 @@ class CommentListTest extends ShimmieWebTestCase { $this->log_out(); } - function tearDown() { + public function tearDown() { $this->log_in_as_admin(); $this->get_page("setup"); $this->set_field("_config_comment_limit", "10"); @@ -16,7 +16,7 @@ class CommentListTest extends ShimmieWebTestCase { $this->log_out(); } - function testCommentsPage() { + public function testCommentsPage() { $this->log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); @@ -80,7 +80,7 @@ class CommentListTest extends ShimmieWebTestCase { $this->assert_no_text('ASDFASDF'); } - function testSingleDel() { + public function testSingleDel() { $this->log_in_as_admin(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); diff --git a/ext/danbooru_api/test.php b/ext/danbooru_api/test.php index 3717ed80..41234dcd 100644 --- a/ext/danbooru_api/test.php +++ b/ext/danbooru_api/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $image_id = $this->post_image("ext/simpletest/data/bedroom_workshop.jpg", "data"); diff --git a/ext/downtime/test.php b/ext/downtime/test.php index 77657dff..00eb6ea6 100644 --- a/ext/downtime/test.php +++ b/ext/downtime/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $this->get_page("setup"); $this->set_field("_config_downtime", true); diff --git a/ext/emoticons/test.php b/ext/emoticons/test.php index 7f9237c7..740b3b88 100644 --- a/ext/emoticons/test.php +++ b/ext/emoticons/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx computer screenshot"); $this->get_page("post/view/$image_id"); diff --git a/ext/et/test.php b/ext/et/test.php index d6df53b9..11463f0f 100644 --- a/ext/et/test.php +++ b/ext/et/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $this->get_page("system_info"); $this->assert_title("System Info"); diff --git a/ext/ext_manager/test.php b/ext/ext_manager/test.php index 4a4b0601..e43ccfda 100644 --- a/ext/ext_manager/test.php +++ b/ext/ext_manager/test.php @@ -1,6 +1,6 @@ get_page('ext_manager'); $this->assert_title("Extensions"); diff --git a/ext/favorites/test.php b/ext/favorites/test.php index c3c4b8d1..18d1b07d 100644 --- a/ext/favorites/test.php +++ b/ext/favorites/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "test"); diff --git a/ext/featured/test.php b/ext/featured/test.php index 2308238e..091c58c5 100644 --- a/ext/featured/test.php +++ b/ext/featured/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); $this->log_out(); diff --git a/ext/handle_404/test.php b/ext/handle_404/test.php index ad6d3943..57bb1ea8 100644 --- a/ext/handle_404/test.php +++ b/ext/handle_404/test.php @@ -1,6 +1,6 @@ get_page('not/a/page'); $this->assert_response(404); $this->assert_title('404'); diff --git a/ext/handle_ico/test.php b/ext/handle_ico/test.php index 9292a4a5..d261426b 100644 --- a/ext/handle_ico/test.php +++ b/ext/handle_ico/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("lib/static/favicon.ico", "shimmie favicon"); $this->assert_response(302); diff --git a/ext/handle_pixel/test.php b/ext/handle_pixel/test.php index c8096114..36a712fe 100644 --- a/ext/handle_pixel/test.php +++ b/ext/handle_pixel/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx computer screenshot"); $this->assert_response(302); diff --git a/ext/handle_svg/test.php b/ext/handle_svg/test.php index f6420684..16f49775 100644 --- a/ext/handle_svg/test.php +++ b/ext/handle_svg/test.php @@ -1,6 +1,6 @@ get_page('home'); $this->assert_title('Shimmie'); $this->assert_text('Shimmie'); diff --git a/ext/image_hash_ban/test.php b/ext/image_hash_ban/test.php index d84889fd..7f6e95a5 100644 --- a/ext/image_hash_ban/test.php +++ b/ext/image_hash_ban/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); $this->log_out(); diff --git a/ext/index/test.php b/ext/index/test.php index 6496882b..38f9c140 100644 --- a/ext/index/test.php +++ b/ext/index/test.php @@ -1,6 +1,6 @@ get_page('post/list'); $this->assert_title("Welcome to Shimmie ".VERSION); $this->assert_no_text("Prev | Index | Next"); @@ -32,7 +32,7 @@ class IndexTest extends ShimmieWebTestCase { # FIXME: test search box } - function testSearches() { + public function testSearches() { $this->log_in_as_user(); $image_id_1 = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx computer screenshot"); $image_id_2 = $this->post_image("ext/simpletest/data/bedroom_workshop.jpg", "computer bedroom workshop"); diff --git a/ext/ipban/test.php b/ext/ipban/test.php index 4e4226b6..57771f28 100644 --- a/ext/ipban/test.php +++ b/ext/ipban/test.php @@ -1,6 +1,6 @@ get_page('ip_ban/list'); $this->assert_response(403); $this->assert_title("Permission Denied"); diff --git a/ext/link_image/test.php b/ext/link_image/test.php index 1e70a4d2..fc13c5e0 100644 --- a/ext/link_image/test.php +++ b/ext/link_image/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pie"); diff --git a/ext/log_db/test.php b/ext/log_db/test.php index 2314d41f..901bff07 100644 --- a/ext/log_db/test.php +++ b/ext/log_db/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $this->get_page("log/view"); $this->get_page("log/view?module=core-image"); diff --git a/ext/numeric_score/test.php b/ext/numeric_score/test.php index ed230272..d6414347 100644 --- a/ext/numeric_score/test.php +++ b/ext/numeric_score/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); $this->get_page("post/view/$image_id"); diff --git a/ext/oekaki/test.php b/ext/oekaki/test.php index 07ca4ec3..0ad52da3 100644 --- a/ext/oekaki/test.php +++ b/ext/oekaki/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $this->get_page("oekaki/create"); $this->log_out(); diff --git a/ext/pm/test.php b/ext/pm/test.php index f08a0274..fff469a6 100644 --- a/ext/pm/test.php +++ b/ext/pm/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $this->get_page("user/test"); $this->set_field('subject', "message demo to test"); @@ -28,7 +28,7 @@ class PrivMsgTest extends SCoreWebTestCase { $this->log_out(); } - function testAdminAccess() { + public function testAdminAccess() { $this->log_in_as_admin(); $this->get_page("user/test"); $this->set_field('subject', "message demo to test"); diff --git a/ext/pools/test.php b/ext/pools/test.php index 8a59dce9..2287ae9f 100644 --- a/ext/pools/test.php +++ b/ext/pools/test.php @@ -1,6 +1,6 @@ get_page('pool/list'); $this->assert_title("Pools"); diff --git a/ext/random_image/test.php b/ext/random_image/test.php index f11c83ef..2d30152d 100644 --- a/ext/random_image/test.php +++ b/ext/random_image/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "test"); $this->log_out(); @@ -19,7 +19,7 @@ class RandomTest extends ShimmieWebTestCase { $this->log_out(); } - function testPostListBlock() { + public function testPostListBlock() { $this->log_in_as_admin(); $this->get_page("setup"); $this->set_field("_config_show_random_block", true); diff --git a/ext/rating/test.php b/ext/rating/test.php index 81d02dfc..cb44a2af 100644 --- a/ext/rating/test.php +++ b/ext/rating/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); diff --git a/ext/regen_thumb/test.php b/ext/regen_thumb/test.php index e2b5dc63..b44660b9 100644 --- a/ext/regen_thumb/test.php +++ b/ext/regen_thumb/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx computer screenshot"); $this->get_page("post/view/$image_id"); diff --git a/ext/report_image/test.php b/ext/report_image/test.php index 65b89aef..0979e4fe 100644 --- a/ext/report_image/test.php +++ b/ext/report_image/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx computer screenshot"); $this->get_page("post/view/$image_id"); diff --git a/ext/res_limit/test.php b/ext/res_limit/test.php index 9d66d3ce..e31c6909 100644 --- a/ext/res_limit/test.php +++ b/ext/res_limit/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $this->get_page("setup"); $this->set_field("_config_upload_min_height", "0"); @@ -24,7 +24,7 @@ class ResLimitTest extends ShimmieWebTestCase { $this->log_out(); } - function testResLimitSmall() { + public function testResLimitSmall() { $this->log_in_as_admin(); $this->get_page("setup"); $this->set_field("_config_upload_min_height", "900"); @@ -48,7 +48,7 @@ class ResLimitTest extends ShimmieWebTestCase { $this->log_out(); } - function testResLimitLarge() { + public function testResLimitLarge() { $this->log_in_as_admin(); $this->get_page("setup"); $this->set_field("_config_upload_min_height", "0"); @@ -72,7 +72,7 @@ class ResLimitTest extends ShimmieWebTestCase { $this->log_out(); } - function testResLimitRatio() { + public function testResLimitRatio() { $this->log_in_as_admin(); $this->get_page("setup"); $this->set_field("_config_upload_min_height", "-1"); diff --git a/ext/setup/test.php b/ext/setup/test.php index 6114b030..6d22caf1 100644 --- a/ext/setup/test.php +++ b/ext/setup/test.php @@ -1,6 +1,6 @@ get_page('setup'); $this->assert_response(403); $this->assert_title("Permission Denied"); diff --git a/ext/shimmie_api/test.php b/ext/shimmie_api/test.php index c8dfa91c..f09e8228 100644 --- a/ext/shimmie_api/test.php +++ b/ext/shimmie_api/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); diff --git a/ext/site_description/test.php b/ext/site_description/test.php index 293c6a1a..cf9f8c86 100644 --- a/ext/site_description/test.php +++ b/ext/site_description/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $this->get_page('setup'); $this->assert_title("Shimmie Setup"); diff --git a/ext/sitemap/test.php b/ext/sitemap/test.php index fa459d9b..ea552044 100644 --- a/ext/sitemap/test.php +++ b/ext/sitemap/test.php @@ -1,6 +1,6 @@ get_page('sitemap.xml'); diff --git a/ext/tag_edit/test.php b/ext/tag_edit/test.php index 89541830..fb493cc0 100644 --- a/ext/tag_edit/test.php +++ b/ext/tag_edit/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); $this->get_page("post/view/$image_id"); @@ -18,7 +18,7 @@ class TagEditTest extends ShimmieWebTestCase { $this->log_out(); } - function testSourceEdit() { + public function testSourceEdit() { $this->log_in_as_user(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); $this->get_page("post/view/$image_id"); @@ -46,7 +46,7 @@ class TagEditTest extends ShimmieWebTestCase { /* * FIXME: Mass Tagger seems to be broken, and this test case always fails. * - function testMassEdit() { + public function testMassEdit() { $this->log_in_as_admin(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); diff --git a/ext/tag_history/test.php b/ext/tag_history/test.php index ae8f2bdf..4b80df7b 100644 --- a/ext/tag_history/test.php +++ b/ext/tag_history/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); $this->get_page("post/view/$image_id"); diff --git a/ext/tag_list/test.php b/ext/tag_list/test.php index 6b50fc87..bf3d8afd 100644 --- a/ext/tag_list/test.php +++ b/ext/tag_list/test.php @@ -2,7 +2,7 @@ class TagListTest extends ShimmieWebTestCase { var $pages = array("map", "alphabetic", "popularity", "categories"); - function testTagList() { + public function testTagList() { $this->get_page('tags/map'); $this->assert_title('Tag List'); @@ -18,7 +18,7 @@ class TagListTest extends ShimmieWebTestCase { # FIXME: test that these show the right stuff } - function testMinCount() { + public function testMinCount() { foreach($this->pages as $page) { $this->get_page("tags/$page?mincount=999999"); $this->assert_title("Tag List"); diff --git a/ext/tips/test.php b/ext/tips/test.php index 6b5e6c1a..6db3ca6d 100644 --- a/ext/tips/test.php +++ b/ext/tips/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $raw = $this->get_page("tips/list"); // get rid of the default data if it's there @@ -10,7 +10,7 @@ class TipsTest extends SCoreWebTestCase { $this->log_out(); } - function testImageless() { + public function testImageless() { $this->log_in_as_admin(); $this->get_page("tips/list"); @@ -29,7 +29,7 @@ class TipsTest extends SCoreWebTestCase { $this->log_out(); } - function testImaged() { + public function testImaged() { $this->log_in_as_admin(); $this->get_page("tips/list"); @@ -48,7 +48,7 @@ class TipsTest extends SCoreWebTestCase { $this->log_out(); } - function testDisabled() { + public function testDisabled() { $this->log_in_as_admin(); $this->get_page("tips/list"); diff --git a/ext/upload/test.php b/ext/upload/test.php index 7eb0b08d..37b0d8f2 100644 --- a/ext/upload/test.php +++ b/ext/upload/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $this->get_page("upload"); diff --git a/ext/user/test.php b/ext/user/test.php index cd55086b..787cef83 100644 --- a/ext/user/test.php +++ b/ext/user/test.php @@ -1,6 +1,6 @@ get_page('user'); $this->assert_title("Not Logged In"); $this->assert_no_text("Options"); diff --git a/ext/view/test.php b/ext/view/test.php index 2398e356..0d7fc058 100644 --- a/ext/view/test.php +++ b/ext/view/test.php @@ -1,6 +1,6 @@ log_in_as_user(); $image_id_1 = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "test"); $image_id_2 = $this->post_image("ext/simpletest/data/bedroom_workshop.jpg", "test2"); diff --git a/ext/wiki/test.php b/ext/wiki/test.php index 3cbbd44c..ce712de1 100644 --- a/ext/wiki/test.php +++ b/ext/wiki/test.php @@ -1,12 +1,12 @@ get_page("wiki"); $this->assert_title("Index"); $this->assert_text("This is a default page"); } - function testAccess() { + public function testAccess() { foreach(array("anon", "user", "admin") as $user) { foreach(array(false, true) as $allowed) { // admin has no settings to set @@ -38,7 +38,7 @@ class WikiTest extends SCoreWebTestCase { } } - function testLock() { + public function testLock() { $this->log_in_as_admin(); $this->get_page("setup"); $this->set_field("_config_wiki_edit_anon", false); @@ -72,7 +72,7 @@ class WikiTest extends SCoreWebTestCase { $this->log_out(); } - function testDefault() { + public function testDefault() { $this->log_in_as_admin(); $this->get_page("wiki/wiki:default"); $this->assert_title("wiki:default"); @@ -89,7 +89,7 @@ class WikiTest extends SCoreWebTestCase { $this->log_out(); } - function testRevisions() { + public function testRevisions() { $this->log_in_as_admin(); $this->get_page("wiki/test"); $this->assert_title("test"); diff --git a/ext/word_filter/test.php b/ext/word_filter/test.php index 6b3df0b2..8efeba99 100644 --- a/ext/word_filter/test.php +++ b/ext/word_filter/test.php @@ -1,6 +1,6 @@ log_in_as_admin(); $this->get_page("setup"); $this->set_field("_config_word_filter", "whore,nice lady\na duck,a kitten\n white ,\tspace\ninvalid");