Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertNoDeleteForSystemCustomerGroup.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 use Magento\Customer\Test\Page\Adminhtml\CustomerGroupEdit;
12 
16 class AssertNoDeleteForSystemCustomerGroup extends AbstractConstraint
17 {
24  public function processAssert(CustomerGroupEdit $customerGroupEdit)
25  {
26  \PHPUnit\Framework\Assert::assertFalse(
27  $customerGroupEdit->getPageMainActions()->checkDeleteButton(),
28  "Delete button is visible."
29  );
30  }
31 
37  public function toString()
38  {
39  return 'Customer group is not possible to delete.';
40  }
41 }