Skip to content

Commit

Permalink
Adding KeywordRepositoryTest
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Feb 23, 2014
1 parent 1a81162 commit 43cbed5
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions test/Tmdb/Tests/Repository/KeywordRepositoryTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?php
/**
* This file is part of the Tmdb PHP API created by Michael Roterman.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package Tmdb
* @author Michael Roterman <[email protected]>
* @copyright (c) 2013, Michael Roterman
* @version 0.0.1
*/
namespace Tmdb\Tests\Repository;

use Tmdb\Repository\KeywordRepository;

class KeywordRepositoryTest extends TestCase
{
const KEYWORD_ID = 1721;

/**
* @test
*/
public function shouldLoadKeyword()
{
$repository = $this->getRepositoryWithMockedHttpClient();

$repository->load(self::KEYWORD_ID);
}

/**
* @test
*/
public function shouldGetKeywords()
{
$repository = $this->getRepositoryWithMockedHttpClient();

$repository->load(self::KEYWORD_ID);
}

/**
* @test
*/
public function shouldGetKeywordsForMovie()
{
/**
* @var KeywordRepository $repository
*/
$repository = $this->getRepositoryWithMockedHttpClient();

$repository->getMovies(1);
}

protected function getApiClass()
{
return 'Tmdb\Api\Keyword';
}

protected function getRepositoryClass()
{
return 'Tmdb\Repository\KeywordRepository';
}
}

0 comments on commit 43cbed5

Please sign in to comment.