Use logged encoding from JSON debug block for non UTF-8 tests

This commit is contained in:
Clemens Schwaighofer
2022-06-30 18:18:17 +09:00
parent 3220180d58
commit 0a6fdf1248

View File

@@ -562,8 +562,8 @@ final class CoreLibsCreateEmailTest extends TestCase
$encoding != 'UTF-8' ?
mb_convert_encoding($expected_content[$pos]['body'] ?? '', $encoding, 'UTF-8') :
$expected_content[$pos]['body'] ?? 'MISSING BODY',
$encoding != 'UTF-8' ?
mb_convert_encoding($email['body'] ?? '', $encoding, 'UTF-8') :
$email['encoding'] != 'UTF-8' ?
mb_convert_encoding($email['body'] ?? '', $email['encoding'], 'UTF-8') :
$email['body'] ?? '',
'Email check: assert body'
);