/** * Assert that customer forgot password message is present on customer account forgot password page. * * @param CustomerAccountLogin $customerLogin * @param Customer $customer * @return void */ public function processAssert(CustomerAccountLogin $customerLogin, Customer $customer) { $message = sprintf(self::SUCCESS_MESSAGE_FIRST_PART . self::SUCCESS_MESSAGE_SECOND_PART, $customer->getEmail()); \PHPUnit_Framework_Assert::assertEquals($message, $customerLogin->getMessages()->getSuccessMessages(), 'Wrong forgot password message is displayed.'); }
/** * Assert that customer locked message is present on customer login page. * * @param CustomerAccountLogin $customerLogin * @return void */ public function processAssert(CustomerAccountLogin $customerLogin) { \PHPUnit_Framework_Assert::assertEquals(self::CUSTOMER_LOCKED_MESSAGE, $customerLogin->getMessages()->getErrorMessage(), 'Wrong message is displayed.'); }