/** * @covers ::execute * * @depends testExecute */ public function testExecuteRealRequest() { $this->sut = FeaturedContent::create($this->productionRequestHandler); $languageCodes = ['en']; $this->sut->setLanguageCodes($languageCodes); $objects = $this->sut->execute(); $this->assertInternalType('array', $objects); // If the request does not return any data, we cannot test its // integrity. $this->assertNotEmpty($objects); foreach ($objects as $object) { $this->assertInstanceOf('\\Triquanta\\IziTravel\\DataType\\FeaturedContentInterface', $object); } }
public function getFeaturedContent(array $languageCodes) { return FeaturedContent::create($this->requestHandler)->setLanguageCodes($languageCodes); }