Example #1
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');
 }
Example #2
0
 protected function setUp()
 {
     parent::setUp();
     if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) {
         $this->_httpXRequestedWith = $_SERVER['HTTP_X_REQUESTED_WITH'];
     }
 }
Example #3
0
 public function setUp()
 {
     parent::setUp();
     $objectManager = Bootstrap::getObjectManager();
     $this->session = $objectManager->get('Magento\\Framework\\Session\\SessionManagerInterface');
     $this->groupRepository = $objectManager->get('Magento\\Customer\\Api\\GroupRepositoryInterface');
 }
 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');
 }
Example #5
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');
 }
Example #6
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');
 }
Example #7
0
 protected function setUp()
 {
     parent::setUp();
     /** @var $objectManager \Magento\TestFramework\ObjectManager */
     $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
     $this->_block = $objectManager->create('Magento\\User\\Block\\User\\Edit\\Tab\\Main');
     $this->_block->setArea('adminhtml');
     $this->_user = $objectManager->create('Magento\\User\\Model\\User');
     $objectManager->get('Magento\\Framework\\Registry')->register('permissions_user', $this->_user);
 }
 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());
 }
Example #9
0
 public function setUp()
 {
     parent::setUp();
     $this->session = Bootstrap::getObjectManager()->get('Magento\\Framework\\Session\\SessionManagerInterface');
 }
Example #10
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');
 }
Example #12
0
 protected function setUp()
 {
     parent::setUp();
     $this->_createDummyIntegration();
 }
Example #13
0
 protected function setUp()
 {
     parent::setUp();
     $this->_dataHelper = $this->_objectManager->get('Magento\\Core\\Helper\\Data');
 }
 /**
  * Initial setup
  */
 protected function setUp()
 {
     $this->currencyRate = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Directory\\Model\\Currency');
     parent::setUp();
 }
Example #15
0
 protected function setUp()
 {
     parent::setUp();
     $this->_filesystem = $this->_objectManager->get('Magento\\Framework\\App\\Filesystem');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Newsletter\\Model\\Template');
 }
Example #17
0
 protected function setUp()
 {
     $this->_block = Bootstrap::getObjectManager()->create('Magento\\Paypal\\Block\\Billing\\Agreement\\View');
     parent::setUp();
 }