Skip to content

Commit bebdd61

Browse files
committed
ignore the cached body when comparing e-mails for equality
1 parent 212de38 commit bebdd61

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)