diff --git a/dev/tests/integration/testsuite/Magento/Newsletter/Model/SubscriberTest.php b/dev/tests/integration/testsuite/Magento/Newsletter/Model/SubscriberTest.php index e971ca88c4e57..bdcbdc035d2b0 100644 --- a/dev/tests/integration/testsuite/Magento/Newsletter/Model/SubscriberTest.php +++ b/dev/tests/integration/testsuite/Magento/Newsletter/Model/SubscriberTest.php @@ -100,7 +100,7 @@ public function testConfirm() $this->assertContains( 'You have been successfully subscribed to our newsletter.', - $transportBuilder->getSentMessage()->getRawMessage() + $transportBuilder->getSentMessage()->getBody()->getParts()[0]->getRawContent() ); } } diff --git a/dev/tests/integration/testsuite/Magento/ProductAlert/Model/EmailTest.php b/dev/tests/integration/testsuite/Magento/ProductAlert/Model/EmailTest.php index ad254e1db40b5..7e604de42f35c 100644 --- a/dev/tests/integration/testsuite/Magento/ProductAlert/Model/EmailTest.php +++ b/dev/tests/integration/testsuite/Magento/ProductAlert/Model/EmailTest.php @@ -102,7 +102,7 @@ public function testSend($isCustomerIdUsed) $this->assertContains( 'John Smith,', - $this->transportBuilder->getSentMessage()->getRawMessage() + $this->transportBuilder->getSentMessage()->getBody()->getParts()[0]->getRawContent() ); } diff --git a/dev/tests/integration/testsuite/Magento/ProductAlert/Model/ObserverTest.php b/dev/tests/integration/testsuite/Magento/ProductAlert/Model/ObserverTest.php index 44f37b34660b6..b38a539c509f1 100644 --- a/dev/tests/integration/testsuite/Magento/ProductAlert/Model/ObserverTest.php +++ b/dev/tests/integration/testsuite/Magento/ProductAlert/Model/ObserverTest.php @@ -71,7 +71,7 @@ public function testProcess() $this->observer->process(); $this->assertContains( 'John Smith,', - $this->transportBuilder->getSentMessage()->getRawMessage() + $this->transportBuilder->getSentMessage()->getBody()->getParts()[0]->getRawContent() ); } @@ -117,7 +117,7 @@ public function testProcessPortuguese() // dispatch process() method and check sent message $this->observer->process(); - $message = $this->transportBuilder->getSentMessage()->getRawMessage(); + $message = $this->transportBuilder->getSentMessage()->getBody()->getParts()[0]->getRawContent(); $expectedText = array_shift($translation); $this->assertContains('/frontend/Magento/luma/pt_BR/', $message); $this->assertContains(substr($expectedText, 0, 50), $message); diff --git a/dev/tests/integration/testsuite/Magento/Wishlist/Controller/IndexTest.php b/dev/tests/integration/testsuite/Magento/Wishlist/Controller/IndexTest.php index f43133c92fc3d..c2988e94ad286 100644 --- a/dev/tests/integration/testsuite/Magento/Wishlist/Controller/IndexTest.php +++ b/dev/tests/integration/testsuite/Magento/Wishlist/Controller/IndexTest.php @@ -175,7 +175,7 @@ public function testSendAction() \Magento\TestFramework\Mail\Template\TransportBuilderMock::class ); - $actualResult = quoted_printable_decode($transportBuilder->getSentMessage()->getRawMessage()); + $actualResult = $transportBuilder->getSentMessage()->getBody()->getParts()[0]->getRawContent(); $this->assertStringMatchesFormat( '%A' . $this->_customerViewHelper->getCustomerName($this->_customerSession->getCustomerDataObject())