diff options
Diffstat (limited to 'tests/phpunit/includes/GlobalFunctions/GlobalWithDBTest.php')
-rw-r--r-- | tests/phpunit/includes/GlobalFunctions/GlobalWithDBTest.php | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/phpunit/includes/GlobalFunctions/GlobalWithDBTest.php b/tests/phpunit/includes/GlobalFunctions/GlobalWithDBTest.php index fb383751a386..efae24dd0501 100644 --- a/tests/phpunit/includes/GlobalFunctions/GlobalWithDBTest.php +++ b/tests/phpunit/includes/GlobalFunctions/GlobalWithDBTest.php @@ -37,22 +37,11 @@ class GlobalWithDBTest extends MediaWikiTestCase { public function testWfIsBadImage( $name, $title, $expected ) { $this->setUpBadImageTests( $name ); - $this->editPage( 'MediaWiki:Bad image list', BadFileLookupTest::BLACKLIST ); + $this->editPage( 'MediaWiki:Bad image list', BadFileLookupTest::BAD_FILE_LIST ); $this->resetServices(); // Enable messages from MediaWiki namespace MediaWikiServices::getInstance()->getMessageCache()->enable(); $this->assertEquals( $expected, wfIsBadImage( $name, $title ) ); } - - /** - * @dataProvider BadFileLookupTest::provideIsBadFile - * @covers ::wfIsBadImage - */ - public function testWfIsBadImage_blacklistParam( $name, $title, $expected ) { - $this->setUpBadImageTests( $name ); - - $this->hideDeprecated( 'wfIsBadImage with $blacklist parameter' ); - $this->assertSame( $expected, wfIsBadImage( $name, $title, BadFileLookupTest::BLACKLIST ) ); - } } |