MediaWiki REL1_34
|
Test the TitleBlacklist API. More...
Public Member Functions | |
setUp () | |
tearDown () | |
testAntiSpoofIntegration () | |
Tests integration with the AntiSpoof extension. | |
testCheckingBlackListedTitle () | |
Verify a blacklisted title gives out an error. | |
testCheckingUnlistedTitle () | |
Verify we allow a title which is not blacklisted. | |
testTboverride () | |
Verify tboverride works. | |
Test the TitleBlacklist API.
This wants to run with phpunit.php, like so: cd $IP/tests/phpunit php phpunit.php ../../extensions/TitleBlacklist/tests/ApiQueryTitleBlacklistTest.php
The blacklist file is testSource
and shared by all tests.
Ian Baker ian@w.nosp@m.ikim.nosp@m.edia..nosp@m.org @group medium @covers ApiQueryTitleBlacklist
Definition at line 18 of file ApiQueryTitleBlacklistTest.php.
ApiQueryTitleBlacklistTest::setUp | ( | ) |
Definition at line 20 of file ApiQueryTitleBlacklistTest.php.
References TitleBlacklist\destroySingleton().
ApiQueryTitleBlacklistTest::tearDown | ( | ) |
Definition at line 33 of file ApiQueryTitleBlacklistTest.php.
References TitleBlacklist\destroySingleton().
ApiQueryTitleBlacklistTest::testAntiSpoofIntegration | ( | ) |
Tests integration with the AntiSpoof extension.
Definition at line 116 of file ApiQueryTitleBlacklistTest.php.
ApiQueryTitleBlacklistTest::testCheckingBlackListedTitle | ( | ) |
Verify a blacklisted title gives out an error.
Definition at line 80 of file ApiQueryTitleBlacklistTest.php.
ApiQueryTitleBlacklistTest::testCheckingUnlistedTitle | ( | ) |
Verify we allow a title which is not blacklisted.
Definition at line 41 of file ApiQueryTitleBlacklistTest.php.
ApiQueryTitleBlacklistTest::testTboverride | ( | ) |
Verify tboverride works.
Definition at line 60 of file ApiQueryTitleBlacklistTest.php.