mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-23 21:53:40 +00:00
Use upstream markTestSkippedIfExtensionNotLoaded in test
Change-Id: I3cf1698e0b6808829d14d5b736237962fce9b945
This commit is contained in:
parent
52d708f9b3
commit
8662c467d8
|
@ -106,9 +106,7 @@ class ApiTitleBlacklistTest extends ApiTestCase {
|
||||||
* Tests integration with the AntiSpoof extension
|
* Tests integration with the AntiSpoof extension
|
||||||
*/
|
*/
|
||||||
public function testAntiSpoofIntegration() {
|
public function testAntiSpoofIntegration() {
|
||||||
if ( !ExtensionRegistry::getInstance()->isLoaded( 'AntiSpoof' ) ) {
|
$this->markTestSkippedIfExtensionNotLoaded( 'AntiSpoof' );
|
||||||
$this->markTestSkipped( "This test requires the AntiSpoof extension" );
|
|
||||||
}
|
|
||||||
|
|
||||||
$listed = $this->doApiRequest( [
|
$listed = $this->doApiRequest( [
|
||||||
'action' => 'titleblacklist',
|
'action' => 'titleblacklist',
|
||||||
|
|
Loading…
Reference in a new issue