Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertAbsenceDeleteAttributeButton.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductAttributeNew;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 
16 class AssertAbsenceDeleteAttributeButton extends AbstractConstraint
17 {
24  public function processAssert(CatalogProductAttributeNew $attributeNew)
25  {
26  \PHPUnit\Framework\Assert::assertFalse(
27  $attributeNew->getPageActions()->checkDeleteButton(),
28  "Button 'Delete Attribute' is present on Attribute page"
29  );
30  }
31 
37  public function toString()
38  {
39  return "Button 'Delete Attribute' is absent on Attribute Page.";
40  }
41 }