Inheritance: extends PHPUnit_Extensions_Selenium2TestCas\PHPUnit_Extensions_Selenium2TestCase
<?php

use Tracy\Debugger;
use VersionPress\Tests\Selenium\SeleniumTestCase;
use VersionPress\Tests\Utils\TestConfig;
use VersionPress\Tests\Utils\TestRunnerOptions;
require_once __DIR__ . '/../vendor/autoload.php';
Debugger::enable(Debugger::DEVELOPMENT, __DIR__ . '/../log');
TestRunnerOptions::getInstance()->configureInstance(["forceSetup" => ["before-class", "before-suite", "just-vp-files"]]);
TestConfig::$defaultConfigFile = __DIR__ . '/test-config.yml';
PHPUnit_Extensions_Selenium2TestCase::shareSession(true);
if (TestRunnerOptions::getInstance()->forceSetup == "before-suite") {
    echo "Setting up site before suite";
    SeleniumTestCase::setUpSite(true);
    echo "\n";
}
Exemplo n.º 2
0
 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     self::$autologin = true;
     self::$wpAutomation->deletePost(self::$testPostId);
 }