Skip to content

Commit

Permalink
Adding ReviewRepositoryTest
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Feb 23, 2014
1 parent f18bbad commit 1a81162
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions test/Tmdb/Tests/Repository/ReviewRepositoryTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?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;

class ReviewRepositoryTest extends TestCase
{
const REVIEW_ID = '5013bc76760ee372cb00253e';

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

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

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

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

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

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

0 comments on commit 1a81162

Please sign in to comment.