diff --git a/lib/Tmdb/Repository/ListRepository.php b/lib/Tmdb/Repository/ListRepository.php index fa1b50fa..3d70cb69 100644 --- a/lib/Tmdb/Repository/ListRepository.php +++ b/lib/Tmdb/Repository/ListRepository.php @@ -18,6 +18,8 @@ class ListRepository extends AbstractRepository { /** + * Get a list by id. + * * @param string $id * @param array $parameters * @param array $headers @@ -30,7 +32,7 @@ public function load($id, array $parameters = array(), array $headers = array()) } /** - * Get the list of jobs. + * Check to see if a movie ID is already added to a list. * * @param int $id * @param array $parameters diff --git a/test/Tmdb/Tests/Repository/ListRepositoryTest.php b/test/Tmdb/Tests/Repository/ListRepositoryTest.php index c4a6f353..8c5f3d73 100644 --- a/test/Tmdb/Tests/Repository/ListRepositoryTest.php +++ b/test/Tmdb/Tests/Repository/ListRepositoryTest.php @@ -26,6 +26,16 @@ public function shouldLoadList() $repository->load(self::LIST_ID); } + /** + * @test + */ + public function shouldLoadListItem() + { + $repository = $this->getRepositoryWithMockedHttpClient(); + + $repository->getItemStatus(self::LIST_ID); + } + protected function getApiClass() { return 'Tmdb\Api\Lists';