Example #1
0
 protected function tearDown()
 {
     if ($this->_httpXRequestedWith !== null) {
         $_SERVER['HTTP_X_REQUESTED_WITH'] = $this->_httpXRequestedWith;
     }
     parent::tearDown();
 }
Example #2
0
 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();
 }
Example #3
0
 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();
 }
Example #4
0
 public function tearDown()
 {
     parent::tearDown();
     $this->session->unsCustomerGroupData();
 }
 /**
  * Tear down
  */
 protected function tearDown()
 {
     $this->_model = null;
     parent::tearDown();
 }