/** * @group Slow * @slowExecutionTime 0.09897 ms * @covers Wikia\Search\Result::getCityId * @covers Wikia\Search\Result::__construct */ public function testGetCityId() { $result = new Result($this->defaultFields); $this->assertEquals($this->defaultFields['wid'], $result->getCityId(), 'Wikia\\Search\\Result::getCityId should return the value for the "wid" field as passed during construction.'); $this->assertAttributeInstanceOf('Wikia\\Search\\MediaWikiService', 'service', $result); }