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