'fi', MainConfigNames::PageLanguageUseDB => true, ] ); $lb = $this->createNoOpMock( LoadBalancer::class ); $lbFactory = $this->createNoOpMock( LBFactory::class, [ 'getMainLB' ] ); $lbFactory->method( 'getMainLB' )->willReturn( $lb ); $factory = new PageStoreFactory( $options, $lbFactory, $this->createNoOpMock( NamespaceInfo::class ), $this->createNoOpMock( TitleParser::class ), $this->createNoOpMock( LinkCache::class ), $this->createNoOpMock( StatsdDataFactoryInterface::class ) ); // Just check that nothing explodes. $this->assertInstanceOf( PageStore::class, $factory->getPageStore() ); } }