Skip to content

Commit c0a20d6

Browse files
committed
Merge remote-tracking branch 'origin/develop' into 2.4.8-beta2-develop-sync
2 parents 1675a64 + c826f5e commit c0a20d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

TwoFactorAuth/Test/Integration/UserConfigRequestManagerTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);
@@ -136,7 +136,7 @@ public function testSendAppConfigRequest(): void
136136
$this->manager->sendConfigRequestTo($this->user);
137137

138138
$this->assertNotEmpty($message = $this->transportBuilderMock->getSentMessage());
139-
$messageHtml = $message->getBody()->getParts()[0]->getRawContent();
139+
$messageHtml = quoted_printable_decode($message->getBody()->bodyToString());
140140
$this->assertStringContainsString(
141141
'You are required to configure website-wide and personal Two-Factor Authorization in order to login to',
142142
$messageHtml
@@ -166,7 +166,7 @@ public function testSendUserConfigRequest(): void
166166
$this->manager->sendConfigRequestTo($this->user);
167167

168168
$this->assertNotEmpty($message = $this->transportBuilderMock->getSentMessage());
169-
$messageHtml = $message->getBody()->getParts()[0]->getRawContent();
169+
$messageHtml = quoted_printable_decode($message->getBody()->bodyToString());
170170
$this->assertStringContainsString(
171171
'You are required to configure personal Two-Factor Authorization in order to login to',
172172
$messageHtml

0 commit comments

Comments
 (0)