Skip to content

Commit

Permalink
Updating ListRepositoyTest to cover ListItems and updated docblocks i…
Browse files Browse the repository at this point in the history
…n ListRepository
  • Loading branch information
wtfzdotnet committed Feb 23, 2014
1 parent 2984be9 commit 4f9e644
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Tmdb/Repository/ListRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

class ListRepository extends AbstractRepository {
/**
* Get a list by id.
*
* @param string $id
* @param array $parameters
* @param array $headers
Expand All @@ -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
Expand Down
10 changes: 10 additions & 0 deletions test/Tmdb/Tests/Repository/ListRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 4f9e644

Please sign in to comment.