31 private $_configValues = [];
41 return \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
71 $annotations = $test->getAnnotations();
72 if (!isset($annotations[
'method'][
'magentoAdminConfigFixture'])) {
75 foreach ($annotations[
'method'][
'magentoAdminConfigFixture'] as $configPathAndValue) {
76 list($configPath, $requiredValue) = preg_split(
'/\s+/', $configPathAndValue, 2);
79 $this->_configValues[$configPath] = $originalValue;
90 foreach ($this->_configValues as $configPath => $originalValue) {
93 $this->_configValues = [];
101 public function startTest(\PHPUnit\Framework\TestCase $test)
103 $this->_currentTest = $test;
114 public function endTest(\PHPUnit\Framework\TestCase $test)
116 $this->_currentTest =
null;
126 if ($this->_currentTest) {
_assignConfigData(\PHPUnit\Framework\TestCase $test)
startTest(\PHPUnit\Framework\TestCase $test)
_getConfigValue($configPath)
_setConfigValue($configPath, $value)
endTest(\PHPUnit\Framework\TestCase $test)
static getObjectManager()