Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CreateStoreGroupEntityTest.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Backend\Test\Page\Adminhtml\NewGroupIndex;
10 use Magento\Backend\Test\Page\Adminhtml\StoreIndex;
12 use Magento\Mtf\TestCase\Injectable;
13 
28 class CreateStoreGroupEntityTest extends Injectable
29 {
30  /* tags */
31  const MVP = 'yes';
32  const SEVERITY = 'S1';
33  /* end tags */
34 
40  protected $storeIndex;
41 
47  protected $newGroupIndex;
48 
56  public function __inject(
57  StoreIndex $storeIndex,
58  NewGroupIndex $newGroupIndex
59  ) {
60  $this->storeIndex = $storeIndex;
61  $this->newGroupIndex = $newGroupIndex;
62  }
63 
70  public function test(StoreGroup $storeGroup)
71  {
72  //Steps
73  $this->storeIndex->open();
74  $this->storeIndex->getGridPageActions()->createStoreGroup();
75  $this->newGroupIndex->getEditFormGroup()->fill($storeGroup);
76  $this->newGroupIndex->getFormPageActions()->save();
77  }
78 }
__inject(StoreIndex $storeIndex, NewGroupIndex $newGroupIndex)