VersionPress\Tests\End2End\Utils\End2EndTestCase::setUpSite PHP Method

setUpSite() private static method

Check if site is set up and VersionPress fully activated, and if not, do so. The $force parametr may force this.
private static setUpSite ( boolean $force )
$force boolean Force all the automation actions to be taken regardless of the site state
    private static function setUpSite($force)
    {
        if ($force || !self::$wpAutomation->isSiteSetUp()) {
            self::$wpAutomation->setUpSite();
        }
        if ($force || !self::$wpAutomation->isVersionPressInitialized()) {
            self::$wpAutomation->copyVersionPressFiles();
            self::$wpAutomation->initializeVersionPress();
        }
    }