Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCustomerIsLocked.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Customer\Test\Page\CustomerAccountLogin;
11 
15 class AssertCustomerIsLocked extends AbstractConstraint
16 {
18  'The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.';
19 
26  public function processAssert(
27  CustomerAccountLogin $customerLogin
28  ) {
29  \PHPUnit\Framework\Assert::assertEquals(
30  self::CUSTOMER_LOCKED_MESSAGE,
31  $customerLogin->getMessages()->getErrorMessage(),
32  'Wrong message is displayed.'
33  );
34  }
35 
41  public function toString()
42  {
43  return 'Customer locked message is present on customer account login page.';
44  }
45 }