Ejemplo n.º 1
0
 /**
  * @test
  */
 public function shouldBeAbleToSetFactories()
 {
     $this->setUp();
     $factory = new TvFactory();
     $class = new \stdClass();
     $factory->setCastFactory($class);
     $factory->setCrewFactory($class);
     $factory->setGenreFactory($class);
     $factory->setImageFactory($class);
     $factory->setTvSeasonFactory($class);
     $this->assertInstanceOf('stdClass', $factory->getCastFactory());
     $this->assertInstanceOf('stdClass', $factory->getCrewFactory());
     $this->assertInstanceOf('stdClass', $factory->getGenreFactory());
     $this->assertInstanceOf('stdClass', $factory->getImageFactory());
     $this->assertInstanceOf('stdClass', $factory->getTvSeasonFactory());
     $model = new Tv();
     $model->setCredits($class);
     $this->assertInstanceOf('stdClass', $model->getCredits());
 }