MediaWiki  1.34.0
ApiQueryTitleBlacklistTest Class Reference

Test the TitleBlacklist API. More...

Inheritance diagram for ApiQueryTitleBlacklistTest:
Collaboration diagram for ApiQueryTitleBlacklistTest:

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...
 

Detailed Description

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.

Member Function Documentation

◆ setUp()

ApiQueryTitleBlacklistTest::setUp ( )

Definition at line 20 of file ApiQueryTitleBlacklistTest.php.

References TitleBlacklist\destroySingleton().

◆ tearDown()

ApiQueryTitleBlacklistTest::tearDown ( )

Definition at line 33 of file ApiQueryTitleBlacklistTest.php.

References TitleBlacklist\destroySingleton().

◆ testAntiSpoofIntegration()

ApiQueryTitleBlacklistTest::testAntiSpoofIntegration ( )

Tests integration with the AntiSpoof extension.

Definition at line 116 of file ApiQueryTitleBlacklistTest.php.

References ExtensionRegistry\getInstance().

◆ testCheckingBlackListedTitle()

ApiQueryTitleBlacklistTest::testCheckingBlackListedTitle ( )

Verify a blacklisted title gives out an error.

Definition at line 80 of file ApiQueryTitleBlacklistTest.php.

◆ testCheckingUnlistedTitle()

ApiQueryTitleBlacklistTest::testCheckingUnlistedTitle ( )

Verify we allow a title which is not blacklisted.

Definition at line 41 of file ApiQueryTitleBlacklistTest.php.

◆ testTboverride()

ApiQueryTitleBlacklistTest::testTboverride ( )

Verify tboverride works.

Definition at line 60 of file ApiQueryTitleBlacklistTest.php.


The documentation for this class was generated from the following file: