protected function tearDown() { if ($this->_httpXRequestedWith !== null) { $_SERVER['HTTP_X_REQUESTED_WITH'] = $this->_httpXRequestedWith; } parent::tearDown(); }
protected function setUp() { parent::setUp(); $this->_baseControllerUrl = 'http://localhost/index.php/backend/customer/index/'; $this->customerAccountService = Bootstrap::getObjectManager()->get('Magento\\Customer\\Service\\V1\\CustomerAccountServiceInterface'); $this->customerAddressService = Bootstrap::getObjectManager()->get('Magento\\Customer\\Service\\V1\\CustomerAddressServiceInterface'); }
protected function setUp() { parent::setUp(); $post = ['code' => 'test data', 'subject' => 'test data2', 'sender_email' => '*****@*****.**', 'sender_name' => 'Test Sender Name', 'text' => 'Template Content']; $this->getRequest()->setPostValue($post); $this->_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Newsletter\\Model\\Template'); }
protected function setUp() { parent::setUp(); /** @var $integration \Magento\Integration\Model\Integration */ $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); $integration = $objectManager->create('Magento\\Integration\\Model\\Integration'); $this->_integration = $integration->load('Fixture Integration', 'name'); }
protected function setUp() { parent::setUp(); $this->_baseControllerUrl = 'http://localhost/index.php/backend/customer/index/'; $this->customerRepository = Bootstrap::getObjectManager()->get('Magento\\Customer\\Api\\CustomerRepositoryInterface'); $this->addressRepository = Bootstrap::getObjectManager()->get('Magento\\Customer\\Api\\AddressRepositoryInterface'); $this->accountManagement = Bootstrap::getObjectManager()->get('Magento\\Customer\\Api\\AccountManagementInterface'); }
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(); }
protected function setUp() { parent::setUp(); $theme = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\\Framework\\View\\DesignInterface')->setDefaultDesignTheme()->getDesignTheme(); $type = 'Magento\\Cms\\Block\\Widget\\Page\\Link'; /** @var $model \Magento\Widget\Model\Widget\Instance */ $model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Widget\\Model\\Widget\\Instance'); $code = $model->setType($type)->getWidgetReference('type', $type, 'code'); $this->getRequest()->setParam('code', $code); $this->getRequest()->setParam('theme_id', $theme->getId()); }
protected function setUp() { parent::setUp(); $this->_filesystem = $this->_objectManager->get('Magento\\Framework\\App\\Filesystem'); }
public function tearDown() { parent::tearDown(); $this->session->unsCustomerGroupData(); }
public function setUp() { parent::setUp(); $this->quoteItemCollectionFactory = $this->_objectManager->get('Magento\\Quote\\Model\\Resource\\Quote\\Item\\CollectionFactory'); }
public function setUp() { parent::setUp(); $this->markTestIncomplete('MAGETWO-24796: [TD] Fix integration test according to story MAGETWO-23885'); }
protected function setUp() { parent::setUp(); $this->_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Newsletter\\Model\\Template'); }
protected function setUp() { parent::setUp(); $this->_dataHelper = $this->_objectManager->get('Magento\\Core\\Helper\\Data'); }
/** * Tear down */ protected function tearDown() { $this->_model = null; parent::tearDown(); }
protected function setUp() { parent::setUp(); $this->_createDummyIntegration(); }
protected function setUp() { $this->_block = Bootstrap::getObjectManager()->create('Magento\\Paypal\\Block\\Billing\\Agreement\\View'); parent::setUp(); }