library/Bootstrap/BootstrapBase.php
protected function installShop()
    {
        $config = $this->getTestConfig();

        $serviceCaller = new ServiceCaller($this->getTestConfig());
        $serviceCaller->setParameter('serial', $config->getShopSerial());
        $serviceCaller->setParameter('addDemoData', $this->addDemoData);
        $serviceCaller->setParameter('turnOnVarnish', $config->shouldEnableVarnish());

        if ($setupPath = $config->getShopSetupPath()) {
            $fileCopier = new FileCopier();
            $remoteDirectory = $config->getRemoteDirectory();
            $shopDirectory = $remoteDirectory ? $remoteDirectory : $config->getShopPath();
            $fileCopier->copyFiles($setupPath, $shopDirectory.'/Setup/');
        }

        try {
            $serviceCaller->callService('ShopInstaller');
        } catch (\Exception $e) {
            exit("Failed to install shop with message: " . $e->getMessage() . PHP_EOL . $e->getTraceAsString());
        }
    }
protected function installShop()
    {
        $config = $this->getTestConfig();

        $serviceCaller = new ServiceCaller($this->getTestConfig());
        $serviceCaller->setParameter('serial', $config->getShopSerial());
        $serviceCaller->setParameter('addDemoData', $this->addDemoData);
        $serviceCaller->setParameter('turnOnVarnish', $config->shouldEnableVarnish());

        if ($setupPath = $config->getShopSetupPath()) {
            $fileCopier = new FileCopier();
            $remoteDirectory = $config->getRemoteDirectory();
            $shopDirectory = $remoteDirectory ? $remoteDirectory : $config->getShopPath();
            $fileCopier->copyFiles($setupPath, $shopDirectory.'/Setup/');
        }

        try {
            $serviceCaller->callService('ShopInstaller');
        } catch (\Exception $e) {
            exit("Failed to install shop with message: " . $e->getMessage() . PHP_EOL . $e->getTraceAsString());
        }
    }
protected function installShop ( ) { $ config = $ this -> getTestConfig ( ) ; $ serviceCaller = new ServiceCaller ( $ this -> getTestConfig ( ) ) ; $ serviceCaller -> setParameter ( 'serial' , $ config -> getShopSerial ( ) ) ; $ serviceCaller -> setParameter ( 'addDemoData' , $ this -> addDemoData ) ; $ serviceCaller -> setParameter ( 'turnOnVarnish' , $ config -> shouldEnableVarnish ( ) ) ; if ( $ setupPath = $ config -> getShopSetupPath ( ) ) { $ fileCopier = new FileCopier ( ) ; $ remoteDirectory = $ config -> getRemoteDirectory ( ) ; $ shopDirectory = $ remoteDirectory ? $ remoteDirectory : $ config -> getShopPath ( ) ; $ fileCopier -> copyFiles ( $ setupPath , $ shopDirectory . '/Setup/' ) ; } try { $ serviceCaller -> callService ( 'ShopInstaller' ) ; } catch ( \ Exception $ e ) { exit ( "Failed to install shop with message: " . $ e -> getMessage ( ) . PHP_EOL . $ e -> getTraceAsString ( ) ) ; } }
Installs the shop.

@throws \Exception
Installs the shop .