コード例 #1
0
 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');
 }
コード例 #2
0
 protected function setUp()
 {
     parent::setUp();
     if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) {
         $this->_httpXRequestedWith = $_SERVER['HTTP_X_REQUESTED_WITH'];
     }
 }
コード例 #3
0
ファイル: GroupTest.php プロジェクト: andrewhowdencom/m2onk8s
 public function setUp()
 {
     parent::setUp();
     $objectManager = Bootstrap::getObjectManager();
     $this->session = $objectManager->get('Magento\\Framework\\Session\\SessionManagerInterface');
     $this->groupRepository = $objectManager->get('Magento\\Customer\\Api\\GroupRepositoryInterface');
 }
コード例 #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');
 }
コード例 #5
0
ファイル: IndexTest.php プロジェクト: niranjanssiet/magento2
 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');
 }
コード例 #6
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);
 }
コード例 #7
0
ファイル: InstanceTest.php プロジェクト: nja78/magento2
 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());
 }
コード例 #8
0
ファイル: IndexTest.php プロジェクト: rafaelstz/magento2
 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');
     $this->formKey = Bootstrap::getObjectManager()->get('Magento\\Framework\\Data\\Form\\FormKey');
     $this->objectManager = Bootstrap::getObjectManager();
     $this->customerViewHelper = $this->objectManager->get('Magento\\Customer\\Helper\\View');
 }
コード例 #9
0
 protected function setUp()
 {
     parent::setUp();
     $this->customerRepository = Bootstrap::getObjectManager()->get('Magento\\Customer\\Api\\CustomerRepositoryInterface');
 }
コード例 #10
0
ファイル: SaveTest.php プロジェクト: Doability/magento2dev
 public function setUp()
 {
     $this->resource = 'Mirasvit_Search::search_stopword';
     $this->uri = 'backend/search/stopword/save';
     parent::setUp();
 }
コード例 #11
0
 protected function setUp()
 {
     parent::setUp();
     $this->_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Newsletter\\Model\\Template');
 }
コード例 #12
0
 public function setUp()
 {
     $this->resource = 'Magento_Paypal::actions_manage';
     $this->uri = 'backend/paypal/billing_agreement/cancel';
     parent::setUp();
 }
コード例 #13
0
 public function setUp()
 {
     $this->resource = 'Magento_Sales::cancel';
     $this->uri = 'backend/sales/order/cancel';
     parent::setUp();
 }
コード例 #14
0
 public function setUp()
 {
     $this->resource = 'Magento_Paypal::fetch';
     $this->uri = 'backend/paypal/paypal_reports/fetch';
     parent::setUp();
 }
コード例 #15
0
ファイル: CreateTest.php プロジェクト: Doability/magento2dev
 protected function setUp()
 {
     parent::setUp();
     $this->productRepository = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\\Catalog\\Api\\ProductRepositoryInterface');
 }
コード例 #16
0
 public function setUp()
 {
     $this->resource = 'Magento_AdminNotification::mark_as_read';
     $this->uri = 'backend/admin/notification/massmarkasread';
     parent::setUp();
 }
コード例 #17
0
 public function setUp()
 {
     parent::setUp();
     $this->quoteItemCollectionFactory = $this->_objectManager->get('Magento\\Quote\\Model\\ResourceModel\\Quote\\Item\\CollectionFactory');
 }
コード例 #18
0
 /**
  * Set up
  */
 protected function setUp()
 {
     $this->uri = 'backend/security/session/check';
     parent::setUp();
 }
コード例 #19
0
 /**
  * Initial setup
  */
 protected function setUp()
 {
     $this->currencyRate = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Directory\\Model\\Currency');
     parent::setUp();
 }
コード例 #20
0
 public function setUp()
 {
     $this->resource = 'Magento_Sales::transactions_fetch';
     $this->uri = 'backend/sales/transactions/fetch';
     parent::setUp();
 }
コード例 #21
0
 public function setUp()
 {
     $this->resource = 'Magento_Sales::review_payment';
     $this->uri = 'backend/sales/order/reviewpayment';
     parent::setUp();
 }
コード例 #22
0
ファイル: EditTest.php プロジェクト: Doability/magento2dev
 public function setUp()
 {
     $this->resource = 'Mirasvit_Search::search_index';
     $this->uri = 'backend/search/index/edit';
     parent::setUp();
 }
コード例 #23
0
ファイル: ViewTest.php プロジェクト: andrewhowdencom/m2onk8s
 protected function setUp()
 {
     $this->_block = Bootstrap::getObjectManager()->create('Magento\\Paypal\\Block\\Billing\\Agreement\\View');
     parent::setUp();
 }
コード例 #24
0
 public function setUp()
 {
     $this->resource = 'Magento_Paypal::paypal_settlement_reports_view';
     $this->uri = 'backend/paypal/paypal_reports/index';
     parent::setUp();
 }
コード例 #25
0
 public function setUp()
 {
     $this->resource = 'Mirasvit_Search::search_synonym';
     $this->uri = 'backend/search/synonym/new';
     parent::setUp();
 }
コード例 #26
0
 public function setUp()
 {
     $this->resource = 'Magento_Sales::actions_edit';
     $this->uri = 'backend/sales/order/addresssave';
     parent::setUp();
 }
コード例 #27
0
 public function setUp()
 {
     $this->resource = 'Magento_Backend::cache';
     $this->uri = 'backend/admin/cache/cleanStaticFiles';
     parent::setUp();
 }
コード例 #28
0
 public function setUp()
 {
     $this->resource = 'Magento_AdminNotification::adminnotification_remove';
     $this->uri = 'backend/admin/notification/massremove';
     parent::setUp();
 }
コード例 #29
0
 /**
  * Set up
  */
 protected function setUp()
 {
     $this->uri = 'backend/security/session/logoutAll';
     parent::setUp();
 }
コード例 #30
0
 public function setUp()
 {
     $this->resource = 'Magento_Paypal::billing_agreement_actions_view';
     $this->uri = 'backend/paypal/billing_agreement/index';
     parent::setUp();
 }