File tree 1 file changed +32
-0
lines changed
dev/tests/integration/testsuite/Magento/Customer/Controller
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,38 @@ public function testLogoutAction()
66
66
$ this ->assertRedirect ($ this ->stringContains ('customer/account/logoutSuccess ' ));
67
67
}
68
68
69
+ /**
70
+ * Test that forgot password email message displays special characters correctly.
71
+ *
72
+ * @magentoConfigFixture current_store customer/password/limit_password_reset_requests_method 0
73
+ * @magentoConfigFixture current_store customer/password/forgot_email_template customer_password_forgot_email_template
74
+ * @magentoConfigFixture current_store customer/password/forgot_email_identity support
75
+ * @magentoConfigFixture current_store general/store_information/name Test special' characters
76
+ * @magentoDataFixture Magento/Customer/_files/customer.php
77
+ */
78
+ public function testForgotPasswordEmailMessageWithSpecialCharacters ()
79
+ {
80
+
81
+
82
+ $ this ->getRequest ()
83
+ ->setPostValue ([
84
+ 'email ' => $ email ,
85
+ ]);
86
+
87
+ $ this ->dispatch ('customer/account/forgotPasswordPost ' );
88
+ $ this ->assertRedirect ($ this ->stringContains ('customer/account/ ' ));
89
+
90
+ /** @var \Magento\TestFramework\Mail\Template\TransportBuilderMock $transportBuilder */
91
+ $ transportBuilder = $ this ->_objectManager ->get (
92
+ \Magento \TestFramework \Mail \Template \TransportBuilderMock::class
93
+ );
94
+ $ subject = $ transportBuilder ->getSentMessage ()->getSubject ();
95
+ $ this ->assertContains (
96
+ 'Test special \' characters ' ,
97
+ $ subject
98
+ );
99
+ }
100
+
69
101
/**
70
102
* @magentoDataFixture Magento/Customer/_files/customer.php
71
103
*/
You can’t perform that action at this time.
0 commit comments