Example #1
0
 public function tearDown()
 {
     parent::tearDown();
     if ($this->webDriver !== NULL) {
         $this->webDriver->close();
     }
 }
 public function setUp()
 {
     parent::setUp();
     //Set up the console application, command and command test runner
     $command = new ResultCleanupCommand();
     $command->setContainer($this->getContainer());
     $this->application = new Application('Overwatch', '0.0.1-test.' . time());
     $this->application->add($command);
     $this->command = new CommandTester($command);
     $this->resultRepo = $this->em->getRepository('OverwatchResultBundle:TestResult');
 }
Example #3
0
 public function setUp()
 {
     parent::setUp();
     $this->repo = $this->em->getRepository("OverwatchTestBundle:Test");
 }
Example #4
0
 public function setUp()
 {
     parent::setUp();
     $this->voter = new TestGroupVoter();
     $this->tokens = ["superadmin" => $this->createUserToken(UserFixtures::$users['user-1'], self::FIREWALL), "admin" => $this->createUserToken(UserFixtures::$users['user-3'], self::FIREWALL), "user" => $this->createUserToken(UserFixtures::$users['user-2'], self::FIREWALL)];
 }
Example #5
0
 public function setUp()
 {
     parent::setUp();
     $this->reporter = new EmailReporter($this->getMockedEnvironment(), ["enabled" => true, "report_from" => self::FROM_MAIL]);
 }