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');
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     $capabilities = [WebDriverCapabilityType::BROWSER_NAME => 'firefox'];
     $this->webDriver = RemoteWebDriver::create('http://localhost:4444/wd/hub', $capabilities);
 }
Пример #3
0
 public function setUp()
 {
     parent::setUp();
     $this->repo = $this->em->getRepository("OverwatchTestBundle:Test");
 }
Пример #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)];
 }
Пример #5
0
 public function setUp()
 {
     parent::setUp();
     $this->reporter = new EmailReporter($this->getMockedEnvironment(), ["enabled" => true, "report_from" => self::FROM_MAIL]);
 }