Beispiel #1
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->entityManager = $this->container->getBean("em");
     $this->albumRepository = $this->container->getBean("albumRepository");
     $this->connection = $this->entityManager->getConnection();
     $this->connection->beginTransaction();
 }
Beispiel #2
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->bandRepository = $this->container->getBean("bandRepository");
 }
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->object = $this->container->getBean("jsonUtils");
 }