Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCustomerNotInGrid.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Customer\Test\Page\Adminhtml\CustomerIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
12 
17 class AssertCustomerNotInGrid extends AbstractConstraint
18 {
26  public function processAssert(
27  Customer $customer,
28  CustomerIndex $customerIndexPage
29  ) {
30  $customerIndexPage->open();
31  \PHPUnit\Framework\Assert::assertFalse(
32  $customerIndexPage->getCustomerGridBlock()->isRowVisible(['email' => $customer->getEmail()]),
33  'Customer with email ' . $customer->getEmail() . 'is present in Customer grid.'
34  );
35  }
36 
42  public function toString()
43  {
44  return 'Customer is absent in Customer grid.';
45  }
46 }
$customer
Definition: customers.php:11
processAssert(Customer $customer, CustomerIndex $customerIndexPage)