MediaWiki
1.34.0
|
Test the TitleBlacklist API. More...
Public Member Functions | |
setUp () | |
tearDown () | |
testAntiSpoofIntegration () | |
Tests integration with the AntiSpoof extension. More... | |
testCheckingBlackListedTitle () | |
Verify a blacklisted title gives out an error. More... | |
testCheckingUnlistedTitle () | |
Verify we allow a title which is not blacklisted. More... | |
testTboverride () | |
Verify tboverride works. More... | |
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 @group medium @covers ikim edia. orgApiQueryTitleBlacklist
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.
References ExtensionRegistry\getInstance().
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.