Skip to content

Commit

Permalink
Updating CollectionRepositoryTest
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Feb 23, 2014
1 parent c1a2e68 commit 97d2232
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/Tmdb/Tests/Repository/CollectionRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*/
namespace Tmdb\Tests\Repository;

use Tmdb\Repository\CollectionRepository;

class CollectionRepositoryTest extends TestCase
{
const COLLECTION_ID = 120;
Expand All @@ -36,6 +38,22 @@ public function shouldGetImages()
$repository->getImages(self::COLLECTION_ID);
}

/**
* @test
*/
public function shouldBeAbleToSetFactories()
{
/**
* @var CollectionRepository $repository
*/
$repository = $this->getRepositoryWithMockedHttpClient();
$class = new \stdClass();

$repository->setImageFactory($class);

$this->assertInstanceOf('stdClass', $repository->getImageFactory());
}

protected function getApiClass()
{
return 'Tmdb\Api\Collections';
Expand Down

0 comments on commit 97d2232

Please sign in to comment.