Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function testSend($isCustomerIdUsed)

$this->assertContains(
'John Smith,',
$this->transportBuilder->getSentMessage()->getRawMessage()
$this->transportBuilder->getSentMessage()->getBody()->getParts()[0]->getRawContent()
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down