VersionPress\Tests\Automation\WpAutomation::copyVersionPressFiles PHP Method

copyVersionPressFiles() public method

See \gulpfile.js.
    public function copyVersionPressFiles()
    {
        $versionPressDir = __DIR__ . '/../..';
        $gulpBaseDir = $versionPressDir . '/../..';
        // project root as checked out from our repository
        $this->exec('gulp test-deploy', $gulpBaseDir, false, ['VP_DEPLOY_TARGET' => $this->siteConfig->path]);
        // this also cleans the destination directory, see gulpfile.js "clean" task
    }

Usage Example

 /**
  * Check if site is set up and VersionPress fully activated, and if not, do so. The $force
  * parametr may force this.
  *
  * @param bool $force 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();
     }
 }
All Usage Examples Of VersionPress\Tests\Automation\WpAutomation::copyVersionPressFiles