Skip to content

Commit 8a62b40

Browse files
committed
minor symfony#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 | symfony#46863 (comment) | License | MIT | Doc PR | Commits ------- bebdd61 ignore the cached body when comparing e-mails for equality
2 parents 212de38 + bebdd61 commit 8a62b40

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines 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)