Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertFieldsAreActive.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Backend\Test\Page\Adminhtml\SystemConfigEditSectionPayment;
11 
17 class AssertFieldsAreActive extends AbstractConstraint
18 {
25  public function processAssert(SystemConfigEditSectionPayment $configEditSectionPayment, array $fieldIds)
26  {
27  foreach ($fieldIds as $fieldId) {
28  \PHPUnit\Framework\Assert::assertFalse(
29  $configEditSectionPayment->getPaymentsConfigBlock()->isFieldDisabled($fieldId),
30  'Field is disabled.'
31  );
32  }
33  }
34 
40  public function toString()
41  {
42  return 'Field is active.';
43  }
44 }
$fieldId
Definition: element.phtml:16
processAssert(SystemConfigEditSectionPayment $configEditSectionPayment, array $fieldIds)