diff --git a/test/Tmdb/Tests/Api/ListsTest.php b/test/Tmdb/Tests/Api/ListsTest.php index 270fc5d2..030b940b 100644 --- a/test/Tmdb/Tests/Api/ListsTest.php +++ b/test/Tmdb/Tests/Api/ListsTest.php @@ -31,7 +31,6 @@ public function shouldGetList() /** * @test - * @expectedException Tmdb\Exception\NotImplementedException */ public function shouldCreateList() { @@ -49,32 +48,29 @@ public function shouldGetItemStatus() ->method('get') ->with('list/' . self::LIST_ID . '/item_status'); - $api->getItemStatus(self::LIST_ID); + $api->getItemStatus(self::LIST_ID, 150); } /** * @test - * @expectedException Tmdb\Exception\NotImplementedException */ public function shouldAddMediaToList() { $api = $this->getApiMock(); - $api->addMediaToList(self::LIST_ID, 'media_id'); + $api->addMediaToList(self::LIST_ID, 150); } /** * @test - * @expectedException Tmdb\Exception\NotImplementedException */ public function shouldRemoveMediaFromList() { $api = $this->getApiMock(); - $api->removeMediaFromList(self::LIST_ID, 'media_id'); + $api->removeMediaFromList(self::LIST_ID, 150); } /** * @test - * @expectedException Tmdb\Exception\NotImplementedException */ public function shouldDeleteList() { diff --git a/test/Tmdb/Tests/Api/TestCase.php b/test/Tmdb/Tests/Api/TestCase.php index 2173bc8f..57c4403d 100644 --- a/test/Tmdb/Tests/Api/TestCase.php +++ b/test/Tmdb/Tests/Api/TestCase.php @@ -33,7 +33,7 @@ protected function getApiMock(array $methods = array()) return $this->getMockBuilder($this->getApiClass()) ->setMethods( array_merge( - array('get', 'post', 'postRaw', 'head', 'patch', 'delete', 'put'), + array('get', 'post', 'postJson', 'postRaw', 'head', 'patch', 'delete', 'put'), $methods ) )