@@ -165,10 +165,10 @@ public function testExistingEmailCreatePostAction(): void
165
165
$ this ->dispatch ('customer/account/createPost ' );
166
166
$ this ->assertRedirect ($ this ->stringContains ('customer/account/create/ ' ));
167
167
$ message = 'There is already an account with this email address. '
168
- . ' If you are sure that it is your email address, <a href=""%1" ">click here</a> '
168
+ . ' If you are sure that it is your email address, <a href="%1 ">click here</a> '
169
169
. 'to get your password and access your account. ' ;
170
170
$ url = 'http://localhost/index.php/customer/account/forgotpassword/ ' ;
171
- $ this ->assertSessionMessages ($ this ->equalTo ([__ ($ message , $ url )]), MessageInterface::TYPE_ERROR );
171
+ $ this ->assertSessionMessages ($ this ->equalTo ([( string ) __ ($ message , $ url )]), MessageInterface::TYPE_ERROR );
172
172
}
173
173
174
174
/**
@@ -185,9 +185,9 @@ public function testRegisterCustomerWithEmailConfirmation(): void
185
185
$ this ->dispatch ('customer/account/createPost ' );
186
186
$ this ->assertRedirect ($ this ->stringContains ('customer/account/index/ ' ));
187
187
$ message = 'You must confirm your account. '
188
- . ' Please check your email for the confirmation link or <a href=""%1" ">click here</a> for a new link. ' ;
188
+ . ' Please check your email for the confirmation link or <a href="%1 ">click here</a> for a new link. ' ;
189
189
$ url = 'http://localhost/index.php/customer/account/confirmation/?email=test_example%40email.com ' ;
190
- $ this ->assertSessionMessages ($ this ->equalTo ([__ ($ message , $ url )]), MessageInterface::TYPE_SUCCESS );
190
+ $ this ->assertSessionMessages ($ this ->equalTo ([( string ) __ ($ message , $ url )]), MessageInterface::TYPE_SUCCESS );
191
191
/** @var CustomerInterface $customer */
192
192
$ customer = $ this ->customerRepository ->get ($ email );
193
193
$ confirmation = $ customer ->getConfirmation ();
0 commit comments