/** * @group Slow * @slowExecutionTime 0.09211 ms * @covers \Wikia\Search\MediaWikiService::getGlobalWithDefault */ public function testGetGlobalWithDefault() { $service = new MediaWikiService(); $app = \F::app(); $app->wg->Foo = null; $this->assertEquals('bar', $service->getGlobalWithDefault('Foo', 'bar'), '\\WikiaSearch\\MediaWikiService::getGlobalWithDefault should return the default value if the global value is null.'); }