Use upstream markTestSkippedIfExtensionNotLoaded in test

Change-Id: I3cf1698e0b6808829d14d5b736237962fce9b945
This commit is contained in:
thiemowmde 2024-08-16 15:59:25 +02:00
parent 52d708f9b3
commit 8662c467d8

View file

@ -106,9 +106,7 @@ class ApiTitleBlacklistTest extends ApiTestCase {
* Tests integration with the AntiSpoof extension
*/
public function testAntiSpoofIntegration() {
if ( !ExtensionRegistry::getInstance()->isLoaded( 'AntiSpoof' ) ) {
$this->markTestSkipped( "This test requires the AntiSpoof extension" );
}
$this->markTestSkippedIfExtensionNotLoaded( 'AntiSpoof' );
$listed = $this->doApiRequest( [
'action' => 'titleblacklist',