Esempio n. 1
0
 protected function tearDown()
 {
     if ($this->_httpXRequestedWith !== null) {
         $_SERVER['HTTP_X_REQUESTED_WITH'] = $this->_httpXRequestedWith;
     }
     parent::tearDown();
 }
Esempio n. 2
0
 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');
 }
Esempio n. 4
0
 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');
 }
Esempio n. 5
0
 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');
 }
Esempio n. 6
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();
 }
Esempio n. 7
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();
 }
Esempio n. 8
0
 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());
 }
Esempio n. 9
0
 protected function setUp()
 {
     parent::setUp();
     $this->_filesystem = $this->_objectManager->get('Magento\\Framework\\App\\Filesystem');
 }
Esempio n. 10
0
 public function tearDown()
 {
     parent::tearDown();
     $this->session->unsCustomerGroupData();
 }
Esempio n. 11
0
 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');
 }
Esempio n. 14
0
 protected function setUp()
 {
     parent::setUp();
     $this->_dataHelper = $this->_objectManager->get('Magento\\Core\\Helper\\Data');
 }
Esempio n. 15
0
 /**
  * Tear down
  */
 protected function tearDown()
 {
     $this->_model = null;
     parent::tearDown();
 }
Esempio n. 16
0
 protected function setUp()
 {
     parent::setUp();
     $this->_createDummyIntegration();
 }
Esempio n. 17
0
 protected function setUp()
 {
     $this->_block = Bootstrap::getObjectManager()->create('Magento\\Paypal\\Block\\Billing\\Agreement\\View');
     parent::setUp();
 }