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

Commit 8a62b40

Browse filesBrowse files
committed
minor #46908 [Mime]  ignore the cached body when comparing e-mails for equality (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- [Mime]  ignore the cached body when comparing e-mails for equality | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | #46863 (comment) | License | MIT | Doc PR | Commits ------- bebdd61 ignore the cached body when comparing e-mails for equality
2 parents 212de38 + bebdd61 commit 8a62b40
Copy full SHA for 8a62b40

File tree

1 file changed

+6
-0
lines changed
Filter options

1 file changed

+6
-0
lines changed

‎src/Symfony/Component/Mime/Tests/MessageConverterTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Mime/Tests/MessageConverterTest.php
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ private function assertConversion(Email $expected)
7676
$expected->html('HTML content');
7777
$converted->html('HTML content');
7878
}
79+
80+
$r = new \ReflectionProperty($expected, 'cachedBody');
81+
$r->setAccessible(true);
82+
$r->setValue($expected, null);
83+
$r->setValue($converted, null);
84+
7985
$this->assertEquals($expected, $converted);
8086
}
8187
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.