From 4f9e6440cb3fcb7ef6b17350807458418f3a6451 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sun, 23 Feb 2014 01:41:16 +0100 Subject: [PATCH] Updating ListRepositoyTest to cover ListItems and updated docblocks in ListRepository --- lib/Tmdb/Repository/ListRepository.php | 4 +++- test/Tmdb/Tests/Repository/ListRepositoryTest.php | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) 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';