9 require_once
__DIR__ .
'/../../../../app/bootstrap.php';
10 require_once
__DIR__ .
'/autoload.php';
12 require
__DIR__ .
'/../../error_handler.php';
18 if (!defined(
'TESTS_BASE_DIR')) {
22 if (!defined(
'TESTS_TEMP_DIR')) {
26 if (!defined(
'TESTS_MODULES_PATH')) {
30 if (!defined(
'MAGENTO_MODULES_PATH')) {
31 define(
'MAGENTO_MODULES_PATH',
__DIR__ .
'/../../../../app/code/Magento/');
42 if (!defined(
'TESTS_INSTALLATION_DB_CONFIG_FILE')) {
46 $shell = new \Magento\Framework\Shell(
new \
Magento\Framework\Shell\CommandRenderer());
61 $settings->get(
'TESTS_GLOBAL_CONFIG_DIR'),
63 AutoloaderRegistry::getAutoloader(),
69 new \
Magento\TestFramework\Bootstrap\Environment(),
70 new \
Magento\TestFramework\Bootstrap\SetupDocBlock(
"{$testsBaseDir}/_files/"),
71 new \
Magento\TestFramework\Bootstrap\Profiler(
new \
Magento\Framework\Profiler\Driver\Standard()),
77 include_once
__DIR__ .
'/../../setup-integration/framework/removeTestModules.php';
87 ->create(\
Magento\Framework\Component\DirSearch::class);
89 ->create(\
Magento\Framework\View\Design\Theme\ThemePackageList::class);
92 new \
Magento\Framework\Component\ComponentRegistrar(),
100 }
catch (\Exception $e) {
if(!file_exists($installConfigFile)) $dirList
defined('TESTS_BP')||define('TESTS_BP' __DIR__
if(!file_exists($installConfigFile)) if(!defined('TESTS_INSTALLATION_DB_CONFIG_FILE')) $shell
if(defined('TESTS_MAGENTO_INSTALLATION') &&TESTS_MAGENTO_INSTALLATION==='enabled') $bootstrap
if(!file_exists($installConfigFile)) $globalConfigFile
static setInstance(Files $instance=null)
catch(\Exception $e) setCustomErrorHandler()
static setInstance(\Magento\TestFramework\Helper\Bootstrap $instance)
static getObjectManager()