Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
bootstrap.php File Reference

Go to the source code of this file.

Variables

 $testsBaseDir = dirname(__DIR__)
 
 $integrationTestsDir = realpath("{$testsBaseDir}/../integration")
 
 $fixtureBaseDir = $integrationTestsDir. '/testsuite'
 
if(!defined('TESTS_BASE_DIR')) if(!defined('TESTS_TEMP_DIR')) if(!defined('TESTS_MODULES_PATH')) if(!defined('MAGENTO_MODULES_PATH')) $settings = new \Magento\TestFramework\Bootstrap\Settings($testsBaseDir, get_defined_constants())
 
 try
 
 $installConfigFile = $settings->getAsConfigFile('TESTS_INSTALL_CONFIG_FILE')
 
if(!file_exists($installConfigFile)) if(!defined('TESTS_INSTALLATION_DB_CONFIG_FILE')) $shell = new \Magento\Framework\Shell(new \Magento\Framework\Shell\CommandRenderer())
 
 $testFrameworkDir = __DIR__
 
 $globalConfigFile = $settings->getAsConfigFile('TESTS_GLOBAL_CONFIG_FILE')
 
if(!file_exists($globalConfigFile)) $dirList = new DirectoryList(BP)
 
 $installDir = TESTS_TEMP_DIR
 
 $application
 
 $bootstrap
 
 $dirSearch
 
 $themePackageList
 

Variable Documentation

◆ $application

$application
Initial value:
= new \Magento\TestFramework\SetupApplication(
$settings->get('TESTS_GLOBAL_CONFIG_DIR'),
$settings->get('TESTS_MAGENTO_MODE'),
AutoloaderRegistry::getAutoloader(),
)
return false
Definition: gallery.phtml:36
if(!file_exists($installConfigFile)) if(!defined('TESTS_INSTALLATION_DB_CONFIG_FILE')) $shell
Definition: bootstrap.php:46
$installDir
Definition: bootstrap.php:55
if(!file_exists($installConfigFile)) $globalConfigFile
Definition: bootstrap.php:53
$settings
Definition: bootstrap.php:29
$installConfigFile
Definition: bootstrap.php:49

Definition at line 56 of file bootstrap.php.

◆ $bootstrap

$bootstrap
Initial value:
= new \Magento\TestFramework\Bootstrap(
new \Magento\TestFramework\Bootstrap\Environment(),
new \Magento\TestFramework\Bootstrap\SetupDocBlock("{$testsBaseDir}/_files/"),
new \Magento\TestFramework\Bootstrap\Profiler(new \Magento\Framework\Profiler\Driver\Standard()),
new \Magento\TestFramework\Bootstrap\MemoryFactory($shell)
)
if(!file_exists($installConfigFile)) if(!defined('TESTS_INSTALLATION_DB_CONFIG_FILE')) $shell
Definition: bootstrap.php:46
$application
Definition: bootstrap.php:58
$settings
Definition: bootstrap.php:29

Definition at line 67 of file bootstrap.php.

◆ $dirList

if (!file_exists( $globalConfigFile)) $dirList = new DirectoryList(BP)

Definition at line 54 of file bootstrap.php.

◆ $dirSearch

$dirSearch
Initial value:

Definition at line 86 of file bootstrap.php.

◆ $fixtureBaseDir

$fixtureBaseDir = $integrationTestsDir. '/testsuite'

Definition at line 16 of file bootstrap.php.

◆ $globalConfigFile

$globalConfigFile = $settings->getAsConfigFile('TESTS_GLOBAL_CONFIG_FILE')

Definition at line 49 of file bootstrap.php.

◆ $installConfigFile

$installConfigFile = $settings->getAsConfigFile('TESTS_INSTALL_CONFIG_FILE')

Definition at line 38 of file bootstrap.php.

◆ $installDir

$installDir = TESTS_TEMP_DIR

Definition at line 55 of file bootstrap.php.

◆ $integrationTestsDir

$integrationTestsDir = realpath("{$testsBaseDir}/../integration")

Definition at line 15 of file bootstrap.php.

◆ $settings

if (!defined( 'TESTS_BASE_DIR')) if (!defined( 'TESTS_TEMP_DIR')) if (!defined( 'TESTS_MODULES_PATH')) if (!defined( 'MAGENTO_MODULES_PATH')) $settings = new \Magento\TestFramework\Bootstrap\Settings($testsBaseDir, get_defined_constants())

Definition at line 33 of file bootstrap.php.

◆ $shell

if (!file_exists( $installConfigFile)) if (!defined( 'TESTS_INSTALLATION_DB_CONFIG_FILE')) $shell = new \Magento\Framework\Shell(new \Magento\Framework\Shell\CommandRenderer())

Definition at line 46 of file bootstrap.php.

◆ $testFrameworkDir

$testFrameworkDir = __DIR__

Definition at line 47 of file bootstrap.php.

◆ $testsBaseDir

$testsBaseDir = dirname(__DIR__)

Definition at line 14 of file bootstrap.php.

◆ $themePackageList

$themePackageList
Initial value:
->create(\Magento\Framework\View\Design\Theme\ThemePackageList::class)

Definition at line 88 of file bootstrap.php.

◆ try

try
Initial value:
{
catch(\Exception $e) setCustomErrorHandler()
Definition: bootstrap.php:106

Definition at line 36 of file bootstrap.php.