/**
  * Before-test setup
  */
 public function setUp()
 {
     parent::setUp();
     $this->buildSchema();
     $fixtureLoader = new FixtureLoader($this->getEntityManager());
     $fixtureLoader->execute();
 }
예제 #2
0
 /**
  * @expectedException DavidBadura\Fixtures\Exception\ReferenceNotFoundException
  */
 public function testReferenceNotFoundException()
 {
     $userFixture = $this->createUserFixture(array('david' => array('name' => 'David Badura', 'email' => '*****@*****.**', 'groups' => array('@group:users'))));
     $fixtures = new FixtureCollection(array($userFixture));
     $this->executor->execute($fixtures);
 }