protected function tearDown() { if ($this->_httpXRequestedWith !== null) { $_SERVER['HTTP_X_REQUESTED_WITH'] = $this->_httpXRequestedWith; } parent::tearDown(); }
protected function tearDown() { $this->_block = null; $this->_user = null; /** @var $objectManager \Magento\TestFramework\ObjectManager */ $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); $objectManager->get('Magento\\Framework\\Registry')->unregister('permissions_user'); parent::tearDown(); }
protected function tearDown() { /** @var $cacheState \Magento\Framework\App\Cache\StateInterface */ $cacheState = Bootstrap::getObjectManager()->get('Magento\\Framework\\App\\Cache\\StateInterface'); foreach (self::$typesConfig as $type => $value) { $cacheState->setEnabled($type, $value); } $cacheState->persist(); parent::tearDown(); }
public function tearDown() { parent::tearDown(); $this->session->unsCustomerGroupData(); }
/** * Tear down */ protected function tearDown() { $this->_model = null; parent::tearDown(); }