From 1a8116261816ca3079904a5b643d8da0a64130ce Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sun, 23 Feb 2014 01:26:15 +0100 Subject: [PATCH] Adding ReviewRepositoryTest --- .../Tests/Repository/ReviewRepositoryTest.php | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 test/Tmdb/Tests/Repository/ReviewRepositoryTest.php diff --git a/test/Tmdb/Tests/Repository/ReviewRepositoryTest.php b/test/Tmdb/Tests/Repository/ReviewRepositoryTest.php new file mode 100644 index 00000000..72f20e09 --- /dev/null +++ b/test/Tmdb/Tests/Repository/ReviewRepositoryTest.php @@ -0,0 +1,48 @@ + + * @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'; + } +} \ No newline at end of file