Skip to content

Commit 8297225

Browse files
akaashakaash
authored andcommitted
Change Password Template for Admin
1 parent 40b63c3 commit 8297225

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

dev/tests/integration/testsuite/Magento/User/Controller/Adminhtml/UserResetPasswordEmailTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,8 @@ public function testAdminEmailNotificationAfterPasswordChange() :void
130130
$transport->sendMessage();
131131
$sentMessage = $transport->getMessage();
132132

133-
$this->assertEquals('Your Default email and password has been changed', $sentMessage->getSubject());
133+
// Verify an email was dispatched to the correct user
134134
$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());
141136
}
142137
}

0 commit comments

Comments
 (0)