File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
TwoFactorAuth/Test/Integration Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
77declare (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
You can’t perform that action at this time.
0 commit comments