Exemplo n.º 1
0
 /**
  * Return configuration for the tests
  *
  * @return \Magento\TestFramework\Performance\Config
  */
 public function getConfig()
 {
     if (null === $this->config) {
         $configFile = "{$this->testsBaseDir}/config.php";
         $configFile = file_exists($configFile) ? $configFile : "{$configFile}.dist";
         $configData = (require $configFile);
         /** @var \Magento\Framework\App\Filesystem\DirectoryList $dirList */
         $dirList = $this->appBootstrap->getObjectManager()->get('Magento\\Framework\\App\\Filesystem\\DirectoryList');
         $this->config = new Config($configData, $this->testsBaseDir, $dirList->getRoot());
     }
     return $this->config;
 }
Exemplo n.º 2
0
 /**
  * Test framework application factory method
  *
  * @param \Magento\Framework\Shell $shell
  * @return \Magento\TestFramework\Application
  */
 public function createApplication(\Magento\Framework\Shell $shell)
 {
     return new \Magento\TestFramework\Application($this->getConfig(), $this->appBootstrap->getObjectManager(), $shell);
 }