Exemplo n.º 1
0
 protected function tearDown()
 {
     $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
     $this->_customerSession->setCustomerId(null);
     $this->_context->getRequest()->setParam('id', $this->_requestId);
     /** @var \Magento\Customer\Model\AddressRegistry $addressRegistry */
     $addressRegistry = $objectManager->get('Magento\\Customer\\Model\\AddressRegistry');
     //Cleanup address from registry
     $addressRegistry->remove(1);
     $addressRegistry->remove(2);
     /** @var \Magento\Customer\Model\CustomerRegistry $customerRegistry */
     $customerRegistry = $objectManager->get('Magento\\Customer\\Model\\CustomerRegistry');
     //Cleanup customer from registry
     $customerRegistry->remove(1);
 }