1<?php 2/** 3 * This file is part of the Tmdb PHP API created by Michael Roterman. 4 * 5 * For the full copyright and license information, please view the LICENSE 6 * file that was distributed with this source code. 7 * 8 * @package Tmdb 9 * @author Michael Roterman <michael@wtfz.net> 10 * @copyright (c) 2013, Michael Roterman 11 * @version 0.0.1 12 */ 13namespace Tmdb\Tests\Repository; 14 15class CertificationRepositoryTest extends TestCase 16{ 17 /** 18 * @test 19 */ 20 public function shouldLoadMovieCertifications() 21 { 22 $repository = $this->getRepositoryWithMockedHttpAdapter(); 23 24 $this->getAdapter()->expects($this->once()) 25 ->method('get') 26 ->with($this->getRequest('https://api.themoviedb.org/3/certification/movie/list')) 27 ; 28 29 $repository->getMovieList(); 30 } 31 32 /** 33 * @test 34 */ 35 public function shouldLoadTvCertifications() 36 { 37 $repository = $this->getRepositoryWithMockedHttpAdapter(); 38 39 $this->getAdapter()->expects($this->once()) 40 ->method('get') 41 ->with($this->getRequest('https://api.themoviedb.org/3/certification/tv/list')) 42 ; 43 44 $repository->getTvList(); 45 } 46 47 protected function getApiClass() 48 { 49 return 'Tmdb\Api\Certification'; 50 } 51 52 protected function getRepositoryClass() 53 { 54 return 'Tmdb\Repository\CertificationRepository'; 55 } 56} 57