Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertStoreGroupNoDeleteButton.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Backend\Test\Page\Adminhtml\NewGroupIndex;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 
15 class AssertStoreGroupNoDeleteButton extends AbstractConstraint
16 {
23  public function processAssert(NewGroupIndex $newGroupIndex)
24  {
25  \PHPUnit\Framework\Assert::assertFalse(
26  $newGroupIndex->getFormPageActions()->checkDeleteButton(),
27  '\'Delete\' button on StoreGroup view edit page is present when it should not.'
28  );
29  }
30 
36  public function toString()
37  {
38  return '\'Delete\' button on StoreGroup view edit page is absent.';
39  }
40 }