Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CreateCustomerGroupEntityTest.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Customer\Test\Page\Adminhtml\CustomerGroupIndex;
11 use Magento\Customer\Test\Page\Adminhtml\CustomerGroupNew;
12 use Magento\Mtf\TestCase\Injectable;
13 
28 class CreateCustomerGroupEntityTest extends Injectable
29 {
30  /* tags */
31  const MVP = 'yes';
32  const STABLE = 'no';
33  /* end tags */
34 
41 
47  protected $customerGroupNew;
48 
53  public function __inject(
54  CustomerGroupIndex $customerGroupIndex,
55  CustomerGroupNew $customerGroupNew
56  ) {
57  $this->customerGroupIndex = $customerGroupIndex;
58  $this->customerGroupNew = $customerGroupNew;
59  }
60 
66  public function testCreateCustomerGroup(
67  CustomerGroup $customerGroup
68  ) {
69  //Steps
70  $this->customerGroupIndex->open();
71  $this->customerGroupIndex->getGridPageActions()->addNew();
72  $this->customerGroupNew->getPageMainForm()->fill($customerGroup);
73  $this->customerGroupNew->getPageMainActions()->save();
74  }
75 }
__inject(CustomerGroupIndex $customerGroupIndex, CustomerGroupNew $customerGroupNew)