File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
dev/tests/functional/tests/app/Magento/Customer/Test/Constraint Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Customer \Test \Constraint ;
8
8
9
- use Magento \Customer \Test \Fixture \Customer ;
10
9
use Magento \Customer \Test \Page \Adminhtml \CustomerIndexNew ;
11
10
use Magento \Mtf \Constraint \AbstractConstraint ;
12
11
16
15
*/
17
16
class AssertCustomerInvalidEmail extends AbstractConstraint
18
17
{
19
- const ERROR_EMAIL_MESSAGE = 'Please correct this email address: "%email%" . ' ;
18
+ const ERROR_EMAIL_MESSAGE = '"Email" is not a valid hostname . ' ;
20
19
21
20
/**
22
21
* Assert that error message "Please correct this email address: "%email%"." is displayed
23
22
* after customer with invalid email save
24
23
*
25
- * @param Customer $customer
26
24
* @param CustomerIndexNew $pageCustomerIndexNew
27
25
* @return void
28
26
*/
29
- public function processAssert (Customer $ customer , CustomerIndexNew $ pageCustomerIndexNew )
27
+ public function processAssert (CustomerIndexNew $ pageCustomerIndexNew )
30
28
{
31
- $ expectMessage = str_replace ( ' %email% ' , $ customer -> getEmail (), self ::ERROR_EMAIL_MESSAGE ) ;
29
+ $ expectMessage = self ::ERROR_EMAIL_MESSAGE ;
32
30
$ actualMessage = $ pageCustomerIndexNew ->getMessagesBlock ()->getErrorMessage ();
33
31
34
32
\PHPUnit_Framework_Assert::assertEquals (
You can’t perform that action at this time.
0 commit comments