本文整理匯總了PHP中Magento\TestFramework\TestCase\AbstractBackendController::tearDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP AbstractBackendController::tearDown方法的具體用法?PHP AbstractBackendController::tearDown怎麽用?PHP AbstractBackendController::tearDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Magento\TestFramework\TestCase\AbstractBackendController
的用法示例。
在下文中一共展示了AbstractBackendController::tearDown方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: tearDown
protected function tearDown()
{
if ($this->_httpXRequestedWith !== null) {
$_SERVER['HTTP_X_REQUESTED_WITH'] = $this->_httpXRequestedWith;
}
parent::tearDown();
}
示例2: 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();
}
示例3: 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();
}
示例4: tearDown
/**
* Tear down
*/
protected function tearDown()
{
$this->_model = null;
parent::tearDown();
}
示例5: tearDown
public function tearDown()
{
parent::tearDown();
//$this->session->unsCustomerGroupData();
}