From f18bbad85929db30567d969b764abeac1e87ad7f Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sun, 23 Feb 2014 01:22:23 +0100 Subject: [PATCH] Adding NetworkRepositoryTest --- .../Repository/NetworkRepositoryTest.php | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 test/Tmdb/Tests/Repository/NetworkRepositoryTest.php diff --git a/test/Tmdb/Tests/Repository/NetworkRepositoryTest.php b/test/Tmdb/Tests/Repository/NetworkRepositoryTest.php new file mode 100644 index 00000000..7e8779a7 --- /dev/null +++ b/test/Tmdb/Tests/Repository/NetworkRepositoryTest.php @@ -0,0 +1,48 @@ + + * @copyright (c) 2013, Michael Roterman + * @version 0.0.1 + */ +namespace Tmdb\Tests\Repository; + +class NetworkRepositoryTest extends TestCase +{ + const NETWORK_ID = 49; + + /** + * @test + */ + public function shouldLoadNetwork() + { + $repository = $this->getRepositoryWithMockedHttpClient(); + + $repository->load(self::NETWORK_ID); + } + + /** + * @test + */ + public function shouldGetNetworks() + { + $repository = $this->getRepositoryWithMockedHttpClient(); + + $repository->load(self::NETWORK_ID); + } + + protected function getApiClass() + { + return 'Tmdb\Api\Network'; + } + + protected function getRepositoryClass() + { + return 'Tmdb\Repository\NetworkRepository'; + } +} \ No newline at end of file