Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Mime] [5.4] Fixed tests after merge up from 4.4 branch #46891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
[Mime] Fixed tests after merge up from 4.4 branch
  • Loading branch information
stloyd committed Jul 8, 2022
commit 39cff1decd5256b0806a4eb04d1aad5f7d8a097c
1 change: 1 addition & 0 deletions 1 src/Symfony/Bridge/Twig/Tests/Mime/TemplatedEmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function testSymfonySerialize()
"inline": false
}
],
"cachedBody": null,
"headers": {
"to": [
{
Expand Down
1 change: 1 addition & 0 deletions 1 src/Symfony/Component/Mime/Tests/EmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ public function testSymfonySerialize()
"inline": false
}
],
"cachedBody": null,
"headers": {
"to": [
{
Expand Down
8 changes: 5 additions & 3 deletions 8 src/Symfony/Component/Mime/Tests/MessageConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ public function testToEmail()

private function assertConversion(Email $expected)
{
$r = new \ReflectionMethod($expected, 'generateBody');
$message = new Message($expected->getHeaders(), $expected->getBody());
$converted = MessageConverter::toEmail($message);

$r = new \ReflectionMethod($converted, 'generateBody');
$r->setAccessible(true);
$r->invoke($converted);

$message = new Message($expected->getHeaders(), $r->invoke($expected));
$converted = MessageConverter::toEmail($message);
if ($expected->getHtmlBody()) {
$this->assertStringMatchesFormat(str_replace('cid:test.jpg', 'cid:%s', $expected->getHtmlBody()), $converted->getHtmlBody());
$expected->html('HTML content');
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.