public function setUp() { parent::setUp(); $this->srv = $this->container->get('app.common.laaf.frame'); }
public function setUp() { parent::setUp(); $this->srv = $this->getContainer()->get('app.url'); }
public function setUp() { parent::setUp(); $em = $this->container->get('doctrine.orm.entity_manager'); $repo = $em->getRepository('ApplicationMainBundle:Parameter'); $entity = $this->container->get('doctrine.orm.entity_manager')->getRepository('Application\\Sonata\\UserBundle\\Entity\\User')->findOneByUsername(self::TEST_USER); $criteria = ['entityType' => get_class($entity), 'entityId' => $entity->getId()]; $stmt = $em->getConnection()->prepare('DELETE FROM parameter WHERE entity_type = :entityType AND entity_id = :entityId'); $stmt->execute($criteria); $em->flush(); }
public function setUp() { parent::setUp(); $this->srv = $this->getContainer()->get('app.common.email.sender'); $this->data = []; }