Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertDefaultAccountInformation.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Customer\Test\Page\CustomerAccountEdit;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 
15 class AssertDefaultAccountInformation extends AbstractConstraint
16 {
23  public function processAssert(
24  CustomerAccountEdit $customerAccountEdit
25  ) {
26  $infoForm = $customerAccountEdit->getAccountInfoForm();
27 
28  \PHPUnit\Framework\Assert::assertFalse(
29  $infoForm->isEmailVisible(),
30  'Email text field should not be visible.'
31  );
32 
33  \PHPUnit\Framework\Assert::assertFalse(
34  $infoForm->isCurrentPasswordVisible(),
35  'Current Password text field should not be visible.'
36  );
37 
38  \PHPUnit\Framework\Assert::assertFalse(
39  $infoForm->isPasswordVisible(),
40  'New Password text field should not be visible.'
41  );
42 
43  \PHPUnit\Framework\Assert::assertFalse(
44  $infoForm->isConfirmPasswordVisible(),
45  'Password Confirmation text field should not be visible.'
46  );
47  }
48 
54  public function toString()
55  {
56  return 'Default customer account information tab is correct.';
57  }
58 }