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\Api; 14 15class ConfigurationTest extends TestCase 16{ 17 /** 18 * @test 19 */ 20 public function shouldGetConfiguration() 21 { 22 $api = $this->getApiWithMockedHttpAdapter(); 23 24 $this->getAdapter()->expects($this->once()) 25 ->method('get') 26 ->with($this->getRequest('https://api.themoviedb.org/3/configuration')); 27 28 $api->getConfiguration(); 29 } 30 31 protected function getApiClass() 32 { 33 return 'Tmdb\Api\Configuration'; 34 } 35} 36