getBlobStoreFactory(); $store = $factory->newBlobStore( $wikiId ); $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 ); } /** * @dataProvider provideWikiIds */ public function testNewSqlBlobStore( $wikiId ) { $factory = MediaWikiServices::getInstance()->getBlobStoreFactory(); $store = $factory->newSqlBlobStore( $wikiId ); $this->assertInstanceOf( SqlBlobStore::class, $store ); $wrapper = TestingAccessWrapper::newFromObject( $store ); $this->assertEquals( $wikiId, $wrapper->wikiId ); } }