Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CreateStoreEntityTest.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Backend\Test\Page\Adminhtml\StoreIndex;
10 use Magento\Backend\Test\Page\Adminhtml\StoreNew;
12 use Magento\Mtf\TestCase\Injectable;
13 
33 class CreateStoreEntityTest extends Injectable
34 {
35  /* tags */
36  const MVP = 'yes';
37  const TEST_TYPE = 'acceptance_test, extended_acceptance_test';
38  const SEVERITY = 'S0';
39  /* end tags */
40 
46  protected $storeIndex;
47 
53  protected $storeNew;
54 
62  public function __inject(StoreIndex $storeIndex, StoreNew $storeNew)
63  {
64  $this->storeIndex = $storeIndex;
65  $this->storeNew = $storeNew;
66  }
67 
74  public function test(Store $store)
75  {
76  //Steps:
77  $this->storeIndex->open();
78  $this->storeIndex->getGridPageActions()->addStoreView();
79  $this->storeNew->getStoreForm()->fill($store);
80  $this->storeNew->getFormPageActions()->save();
81  $this->storeNew->getModalBlock()->acceptAlert();
82  }
83 }
__inject(StoreIndex $storeIndex, StoreNew $storeNew)