示例#1
0
 public function setUp()
 {
     parent::setUp();
     $this->srv = $this->container->get('app.common.laaf.frame');
 }
示例#2
0
 public function setUp()
 {
     parent::setUp();
     $this->srv = $this->getContainer()->get('app.url');
 }
示例#3
0
 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();
 }
示例#4
0
 public function setUp()
 {
     parent::setUp();
     $this->srv = $this->getContainer()->get('app.common.email.sender');
     $this->data = [];
 }