Ejemplo n.º 1
0
 /**
  * @test
  */
 public function shouldGetVideos()
 {
     $repository = $this->getRepositoryWithMockedHttpClient();
     $tv = new Tv();
     $tv->setId(self::TV_ID);
     $season = new Season();
     $season->setId(self::SEASON_ID);
     $episode = new Episode();
     $episode->setId(self::EPISODE_ID);
     $repository->getVideos($tv, $season, $episode);
 }
 /**
  * @test
  */
 public function shouldGetVideos()
 {
     $repository = $this->getRepositoryWithMockedHttpAdapter();
     $this->getAdapter()->expects($this->once())->method('get')->with($this->getRequest('tv/' . self::TV_ID . '/season/' . self::SEASON_ID . '/episode/' . self::EPISODE_ID . '/videos'));
     $tv = new Tv();
     $tv->setId(self::TV_ID);
     $season = new Season();
     $season->setId(self::SEASON_ID);
     $episode = new Episode();
     $episode->setId(self::EPISODE_ID);
     $repository->getVideos($tv, $season, $episode);
 }