示例#1
0
 /**
  * @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);
     }
 }
示例#2
0
 public function getFeaturedContent(array $languageCodes)
 {
     return FeaturedContent::create($this->requestHandler)->setLanguageCodes($languageCodes);
 }