Skip to content

Commit

Permalink
Fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Feb 25, 2014
1 parent dbfbe85 commit 382b694
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions test/Tmdb/Tests/Api/ListsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public function shouldGetList()

/**
* @test
* @expectedException Tmdb\Exception\NotImplementedException
*/
public function shouldCreateList()
{
Expand All @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Tmdb/Tests/Api/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
Expand Down

0 comments on commit 382b694

Please sign in to comment.