Definition at line 12 of file Bootstrap.php.
◆ __construct()
Constructor
- Parameters
-
\Magento\TestFramework\Bootstrap | $bootstrap | |
Definition at line 75 of file Bootstrap.php.
if(defined('TESTS_MAGENTO_INSTALLATION') &&TESTS_MAGENTO_INSTALLATION==='enabled') $bootstrap
◆ canTestHeaders()
static canTestHeaders |
( |
| ) |
|
|
static |
Check the possibility to send headers or to use headers related function (like set_cookie)
- Returns
- bool
Definition at line 62 of file Bootstrap.php.
◆ getAppInitParams()
Retrieve application initialization options
- Returns
- array
Definition at line 95 of file Bootstrap.php.
97 return $this->_bootstrap->getApplication()->getInitParams();
◆ getAppTempDir()
Retrieve application installation directory
- Returns
- string
Definition at line 85 of file Bootstrap.php.
87 return $this->_bootstrap->getApplication()->getTempDir();
◆ getBootstrap()
Get bootstrap object
- Returns
- \Magento\TestFramework\Bootstrap
Definition at line 145 of file Bootstrap.php.
◆ getInstance()
Self instance getter
- Returns
- \Magento\TestFramework\Helper\Bootstrap
- Exceptions
-
Definition at line 49 of file Bootstrap.php.
51 if (!self::$_instance) {
52 throw new \Magento\Framework\Exception\LocalizedException(
__(
'Helper instance is not defined yet.'));
54 return self::$_instance;
◆ getObjectManager()
static getObjectManager |
( |
| ) |
|
|
static |
Retrieve object manager
- Returns
- \Magento\Framework\ObjectManagerInterface
Definition at line 125 of file Bootstrap.php.
127 return self::$_objectManager;
◆ loadArea()
Load area
- Parameters
-
Definition at line 154 of file Bootstrap.php.
156 self::$_objectManager->get(\
Magento\Framework\
App\State::class)->setAreaCode($areaCode);
157 self::$_objectManager->get(\
Magento\Framework\
App\AreaList::class)->getArea($areaCode)->load();
◆ reinitialize()
reinitialize |
( |
array |
$overriddenParams = [] | ) |
|
Reinitialize the application instance optionally passing parameters to be overridden. Intended to be used for the tests isolation purposes.
- Parameters
-
Definition at line 106 of file Bootstrap.php.
108 $this->_bootstrap->getApplication()->reinitialize($overriddenParams);
◆ runApp()
Perform the full request processing by the application instance. Intended to be used by the controller tests.
Definition at line 115 of file Bootstrap.php.
117 $this->_bootstrap->getApplication()->run();
◆ setInstance()
Set self instance for static access
- Parameters
-
\Magento\TestFramework\Helper\Bootstrap | $instance | |
- Exceptions
-
Definition at line 35 of file Bootstrap.php.
37 if (self::$_instance) {
38 throw new \Magento\Framework\Exception\LocalizedException(
__(
'Helper instance cannot be redefined.'));
40 self::$_instance = $instance;
◆ setObjectManager()
Set object manager
- Parameters
-
\Magento\Framework\ObjectManagerInterface | $objectManager | |
Definition at line 135 of file Bootstrap.php.
◆ $_bootstrap
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/framework/Magento/TestFramework/Helper/Bootstrap.php