Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Mar 10, 2015
1 parent ec933db commit d3b8f06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Tmdb/Tests/Factory/MovieFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ public function shouldBeFunctional()
$this->assertInstanceOf('Tmdb\Model\Common\GenericCollection', $this->movie->getSimilar());
$this->assertInstanceOf('Tmdb\Model\Collection\Videos', $this->movie->getVideos());

$primaryRelease = array_shift($this->movie->getReleases()->getAll());
$releases = $this->movie->getReleases()->getAll();
$primaryRelease = array_shift($releases);
$this->assertEquals(true, $primaryRelease->getPrimary());
}

Expand Down

0 comments on commit d3b8f06

Please sign in to comment.