/**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->loginHelper = new LoginTestHelper(static::createClient());
     $this->client = $this->loginHelper->loginAction();
     $this->container = $this->client->getContainer();
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->client = static::createClient();
     $this->twig = $this->client->getContainer()->get('twig');
     $this->loginHelper = new LoginTestHelper($this->client);
 }
 /**
  * Deletes all data after each test.
  */
 protected function tearDown()
 {
     parent::tearDown();
     /** @var EntityManager $entityManager */
     $entityManager = $this->getEntityManager();
     $connection = $entityManager->getConnection();
     $name = $connection->getParams()['dbname'];
     $name = $connection->getSchemaManager()->getDatabasePlatform()->quoteSingleIdentifier($name);
     $connection->getSchemaManager()->dropDatabase($name);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->client = new LoginTestHelper(static::createClient());
 }
 /**
  * {@inheritdoc}
  */
 protected function getContainer($rebuild = false, $kernelOptions = [])
 {
     return parent::getContainer($rebuild, $kernelOptions);
 }