setUpDb([LoadColors::class]); $this->rebrickableLoader = new RebrickableLoader($this->em, $this->get('monolog.logger.event'), __DIR__.'/fixtures/'); } public function testLoadAll() { $this->assertCount(0, $this->em->getRepository(Set::class)->findAll()); $this->rebrickableLoader->loadAll(); $this->assertCount(1, $this->em->getRepository(Set::class)->findAll()); } // /** // * @expectedException LoaderBundle\Exception\Loader\LoadingRebrickableFailedException // */ // public function testRollback() { // $this->rebrickableLoader = new RebrickableLoader($this->em,$this->get('monolog.logger.event'),__DIR__.'/corrupt/'); // // $this->assertCount(0,$this->em->getRepository(Set::class)->findAll()); // // $this->rebrickableLoader->loadAll(); // // $this->assertCount(0,$this->em->getRepository(Set::class)->findAll()); // } }