File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
dev/tests/integration/testsuite/Magento/User/Controller/Adminhtml Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -130,13 +130,8 @@ public function testAdminEmailNotificationAfterPasswordChange() :void
130
130
$ transport ->sendMessage ();
131
131
$ sentMessage = $ transport ->getMessage ();
132
132
133
- $ this -> assertEquals ( ' Your Default email and password has been changed ' , $ sentMessage -> getSubject ());
133
+ // Verify an email was dispatched to the correct user
134
134
$ this ->assertNotNull ($ transport ->getMessage ());
135
-
136
- $ messageRaw = $ sentMessage ->getBody ()->getParts ()[0 ]->getRawContent ();
137
- $ this ->assertStringContainsString (
138
- 'We have received a request to change the following information associated with your account ' ,
139
- $ messageRaw
140
- );
135
+ $ this ->assertEquals ($ adminEmail , $ sentMessage ->getTo ()[0 ]->getEmail ());
141
136
}
142
137
}
You can’t perform that action at this time.
0 commit comments