File tree 1 file changed +4
-4
lines changed
TwoFactorAuth/Test/Integration
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details .
3
+ * Copyright 2015 Adobe
4
+ * All Rights Reserved .
5
5
*/
6
6
7
7
declare (strict_types=1 );
@@ -136,7 +136,7 @@ public function testSendAppConfigRequest(): void
136
136
$ this ->manager ->sendConfigRequestTo ($ this ->user );
137
137
138
138
$ this ->assertNotEmpty ($ message = $ this ->transportBuilderMock ->getSentMessage ());
139
- $ messageHtml = $ message ->getBody ()->getParts ()[ 0 ]-> getRawContent ( );
139
+ $ messageHtml = quoted_printable_decode ( $ message ->getBody ()->bodyToString () );
140
140
$ this ->assertStringContainsString (
141
141
'You are required to configure website-wide and personal Two-Factor Authorization in order to login to ' ,
142
142
$ messageHtml
@@ -166,7 +166,7 @@ public function testSendUserConfigRequest(): void
166
166
$ this ->manager ->sendConfigRequestTo ($ this ->user );
167
167
168
168
$ this ->assertNotEmpty ($ message = $ this ->transportBuilderMock ->getSentMessage ());
169
- $ messageHtml = $ message ->getBody ()->getParts ()[ 0 ]-> getRawContent ( );
169
+ $ messageHtml = quoted_printable_decode ( $ message ->getBody ()->bodyToString () );
170
170
$ this ->assertStringContainsString (
171
171
'You are required to configure personal Two-Factor Authorization in order to login to ' ,
172
172
$ messageHtml
You can’t perform that action at this time.
0 commit comments