X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FStorage%2FBlobStoreFactoryTest.php;h=0249730f1d58a495a1d8ce6fc56959d4a739b673;hb=c63a37679c8e96940702fa84e4def02484dd8e24;hp=5db1634601a57e8d18fe19d4fdda5f2bc76537cb;hpb=63eebc01c48aee45f9c219cadf2e0e81f5a2043e;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/Storage/BlobStoreFactoryTest.php b/tests/phpunit/includes/Storage/BlobStoreFactoryTest.php index 5db1634601..0249730f1d 100644 --- a/tests/phpunit/includes/Storage/BlobStoreFactoryTest.php +++ b/tests/phpunit/includes/Storage/BlobStoreFactoryTest.php @@ -9,38 +9,38 @@ use MediaWikiTestCase; use Wikimedia\TestingAccessWrapper; /** - * @covers \MediaWiki\Storage\BlobStore + * @covers \MediaWiki\Storage\BlobStoreFactory */ class BlobStoreFactoryTest extends MediaWikiTestCase { - public function provideWikiIds() { + public function provideDbDomains() { yield [ false ]; yield [ 'someWiki' ]; } /** - * @dataProvider provideWikiIds + * @dataProvider provideDbDomains */ - public function testNewBlobStore( $wikiId ) { + public function testNewBlobStore( $dbDomain ) { $factory = MediaWikiServices::getInstance()->getBlobStoreFactory(); - $store = $factory->newBlobStore( $wikiId ); + $store = $factory->newBlobStore( $dbDomain ); $this->assertInstanceOf( BlobStore::class, $store ); // This only works as we currently know this is a SqlBlobStore object $wrapper = TestingAccessWrapper::newFromObject( $store ); - $this->assertEquals( $wikiId, $wrapper->wikiId ); + $this->assertEquals( $dbDomain, $wrapper->dbDomain ); } /** - * @dataProvider provideWikiIds + * @dataProvider provideDbDomains */ - public function testNewSqlBlobStore( $wikiId ) { + public function testNewSqlBlobStore( $dbDomain ) { $factory = MediaWikiServices::getInstance()->getBlobStoreFactory(); - $store = $factory->newSqlBlobStore( $wikiId ); + $store = $factory->newSqlBlobStore( $dbDomain ); $this->assertInstanceOf( SqlBlobStore::class, $store ); $wrapper = TestingAccessWrapper::newFromObject( $store ); - $this->assertEquals( $wikiId, $wrapper->wikiId ); + $this->assertEquals( $dbDomain, $wrapper->dbDomain ); } }