Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DeleteSystemCustomerGroupTest.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Customer\Test\Page\Adminhtml\CustomerGroupIndex;
11 use Magento\Mtf\TestCase\Injectable;
12 
23 class DeleteSystemCustomerGroupTest extends Injectable
24 {
25  /* tags */
26  const MVP = 'yes';
27  /* end tags */
28 
35 
42  public function __inject(CustomerGroupIndex $customerGroupIndex)
43  {
44  $this->customerGroupIndex = $customerGroupIndex;
45  }
46 
53  public function test(CustomerGroup $customerGroup)
54  {
55  $filter = ['code' => $customerGroup->getCustomerGroupCode()];
56 
57  // Steps
58  $this->customerGroupIndex->open();
59  $this->customerGroupIndex->getCustomerGroupGrid()->searchAndOpen($filter);
60  }
61 }