/** * @group Slow * @slowExecutionTime 0.1001 ms * @covers Wikia\Search\Result::getHub */ public function testGetHub() { $result = new Result($this->defaultFields); $hubs = ['Gaming' => 'Video Games', 'Entertainment' => 'Entertainment', 'Lifestyle' => 'Lifestyle']; foreach ($hubs as $key => $value) { $result->setField("hub_s", $key); $this->assertEquals($result->getHub(), $value); } }