public function setUp()
 {
     parent::setUp();
     $this->loadFixtures(["Dende\\Bundle\\AppBundle\\DataFixtures\\ORM\\TasksData", "Dende\\Bundle\\AppBundle\\DataFixtures\\ORM\\TodoListsData"]);
     $this->client = static::makeClient();
     $this->client->followRedirects(true);
 }
Beispiel #2
0
 /**
  * Test set up
  */
 public function setUp()
 {
     parent::setUp();
     $this->client = static::createClient(array(), array('PHP_AUTH_USER' => 'jumph', 'PHP_AUTH_PW' => 'jumphpassword'));
     $fixtures = array('Jumph\\Bundle\\UserBundle\\DataFixtures\\ORM\\LoadUserData', 'Jumph\\Bundle\\EmailBundle\\DataFixtures\\ORM\\LoadEmailData', 'Jumph\\Bundle\\ClientBundle\\DataFixtures\\ORM\\LoadCompanyData', 'Jumph\\Bundle\\ClientBundle\\DataFixtures\\ORM\\LoadEmployeeData', 'Jumph\\Bundle\\ProjectBundle\\DataFixtures\\ORM\\LoadProjectData', 'Jumph\\Bundle\\ProjectBundle\\DataFixtures\\ORM\\LoadProjectStatusData', 'Jumph\\Bundle\\TimeTrackerBundle\\DataFixtures\\ORM\\LoadTimeTrackerData', 'Jumph\\Bundle\\TimeTrackerBundle\\DataFixtures\\ORM\\LoadTimeCategoryData');
     $this->loadFixtures($fixtures);
 }
Beispiel #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->loadFixtures($this->getFixtureFullClassNames());
     if (!static::$client) {
         static::$client = static::makeClient($authentication = true);
     }
 }
 public function setUp()
 {
     //Load fixtures
     $fixtures = array('Mvc\\BlogBundle\\DataFixtures\\ORM\\LoadPostsData');
     $this->loadFixtures($fixtures);
     $this->client = static::createClient();
     $this->container = $this->client->getContainer();
     parent::setUp();
 }
 protected function setUp()
 {
     parent::setUp();
     $fs = new Filesystem();
     $tmpdir = $this->getTemporaryPath() . DIRECTORY_SEPARATOR . "web";
     if (is_dir($tmpdir)) {
         $fs->remove($tmpdir);
     }
 }
 protected function setUp()
 {
     parent::setUp();
     $this->client = $this->createClient([], ['CONTENT_TYPE' => 'application/json', 'HTTP_ACCEPT' => 'application/json']);
     $this->jsonDecoder = new JsonDecode(true);
     $this->jsonEncoder = new JsonEncode();
     $fixtures = [LoadUserData::class, LoadPhoneNumberData::class];
     $this->loadFixtures($fixtures);
 }
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->faker = $this->getContainer()->get("hautelook_alice.faker");
     error_reporting(E_ALL & ~E_USER_DEPRECATED);
     $this->client = static::makeClient();
     $this->client->followRedirects(true);
     $this->fixtures = $this->loadFixtureFiles(['@AppBundle/DataFixtures/ORM/test/calendars.yml', '@AppBundle/DataFixtures/ORM/test/events.yml', '@AppBundle/DataFixtures/ORM/test/occurrences.yml', '@AppBundle/DataFixtures/ORM/test/workshops.yml', '@AppBundle/DataFixtures/ORM/test/lessons.yml']);
 }
 public function setUp()
 {
     //Load fixtures
     $fixtures = ['Mvc\\BlogBundle\\DataFixtures\\ORM\\LoadPostsData'];
     $this->loadFixtures($fixtures);
     $this->client = static::createClient();
     $this->container = $this->client->getContainer();
     $this->manager = $this->container->get('mk.tag_manager');
     $this->em = static::$kernel->getContainer()->get('doctrine')->getManager();
     parent::setUp();
 }
 public function setUp()
 {
     $this->client = static::createClient();
     $this->container = $this->client->getContainer();
     $this->manager = $this->container->get('mykees.comment.manager');
     $this->query_manager = $this->container->get('mykees.comment.query.manager');
     $this->em = static::$kernel->getContainer()->get('doctrine')->getManager();
     $fixtures = ['Mykees\\CommentBundle\\DataFixtures\\ORM\\LoadCommentData', 'Mvc\\BlogBundle\\DataFixtures\\ORM\\LoadPostsData'];
     $this->loadFixtures($fixtures);
     parent::setUp();
 }
 /**
  * Do not EVER forget to call parent::setUp() if you override this method!
  */
 public function setUp()
 {
     parent::setUp();
     /** @var ManagerRegistry $doctrine */
     $doctrine = $this->getContainer()->get('doctrine');
     /** @var EntityManagerInterface $manager */
     foreach ($doctrine->getManagerNames() as $managerName) {
         $manager = $this->getCleanManager($managerName);
         $manager->clear();
         $manager->getConnection()->setTransactionIsolation(Connection::TRANSACTION_READ_COMMITTED);
         $manager->beginTransaction();
     }
 }
 public function setUp()
 {
     parent::setUp();
     $em = $this->getContainer()->get('doctrine')->getManager();
     if (!isset($metadatas)) {
         $metadatas = $em->getMetadataFactory()->getAllMetadata();
     }
     $schemaTool = new SchemaTool($em);
     $schemaTool->dropDatabase();
     if (!empty($metadatas)) {
         $schemaTool->createSchema($metadatas);
     }
     $this->postFixtureSetup();
     $fixtures = [];
     $this->loadFixtures($fixtures);
     $this->gameRepository = new GameRepository($em);
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->client = static::makeClient();
 }
Beispiel #14
0
 /**
  * @inheritdoc
  */
 protected function setUp()
 {
     parent::setUp();
     self::runCommand('doctrine:schema:create');
 }
Beispiel #15
0
 /**
  * Set up repository test
  */
 public function setUp()
 {
     parent::setUp();
     $this->loadFixtures(array('UBC\\Exam\\MainBundle\\Tests\\Fixtures\\ExamFixtures'));
 }
Beispiel #16
0
 public function setUp()
 {
     parent::setUp();
     $this->client = static::createClient(array(), array('PHP_AUTH_USER' => 'admin', 'PHP_AUTH_PW' => 'pass'));
     $this->loadFixtures(array('UBC\\Exam\\MainBundle\\Tests\\Fixtures\\ExamFixtures'));
 }
 /**
  * {@inheritDocs}
  */
 protected function setUp()
 {
     parent::setUp();
     $fixtures = $this->fixtures();
     if (count($fixtures) > 0) {
         $this->references = $this->loadFixtures($fixtures)->getReferenceRepository();
     }
     $this->em = $this->getContainer()->get('doctrine')->getManager();
     foreach ($this->dataFiles() as $src => $dst) {
         if (substr($src, 0, 1) === '.') {
             continue;
         }
         $dir = self::DSTDIR . '/' . dirname($dst);
         if (!file_exists($dir)) {
             mkdir($dir, 0755, true);
         }
         copy(self::SRCDIR . '/' . $src, self::DSTDIR . '/' . $dst);
     }
 }
 /**
  * {@inheritDoc}
  * @see PHPUnit_Framework_TestCase::setUp()
  */
 public function setUp()
 {
     parent::setUp();
     $this->fixtures = $this->loadFixtureFiles(array('@ASFUserBundle/DataFixtures/ORM/User.yml'));
 }
Beispiel #19
0
 /**
  * Do not EVER forget to call parent::setUp() if you override this method!
  */
 public function setUp()
 {
     parent::setUp();
     $this->getEntityManager()->getConnection()->setTransactionIsolation(Connection::TRANSACTION_READ_COMMITTED);
     $this->getEntityManager()->beginTransaction();
 }