Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCustomerGroupNotInGrid.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Customer\Test\Page\Adminhtml\CustomerGroupIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
12 
16 class AssertCustomerGroupNotInGrid extends AbstractConstraint
17 {
25  public function processAssert(
26  CustomerGroup $customerGroup,
27  CustomerGroupIndex $customerGroupIndex
28  ) {
29  $customerGroupIndex->open();
30  $filter = ['code' => $customerGroup->getCustomerGroupCode()];
31  \PHPUnit\Framework\Assert::assertFalse(
32  $customerGroupIndex->getCustomerGroupGrid()->isRowVisible($filter),
33  'Group with name \'' . $customerGroup->getCustomerGroupCode() . '\' in customer groups grid.'
34  );
35  }
36 
42  public function toString()
43  {
44  return 'Customer group not in grid.';
45  }
46 }
processAssert(CustomerGroup $customerGroup, CustomerGroupIndex $customerGroupIndex)