diff options
Diffstat (limited to 'framework/src/domain')
-rw-r--r-- | framework/src/domain/mime/tests/mailtemplatetest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/src/domain/mime/tests/mailtemplatetest.cpp b/framework/src/domain/mime/tests/mailtemplatetest.cpp index d5642bb6..d07b704d 100644 --- a/framework/src/domain/mime/tests/mailtemplatetest.cpp +++ b/framework/src/domain/mime/tests/mailtemplatetest.cpp | |||
@@ -410,10 +410,10 @@ private slots: | |||
410 | QCOMPARE(result->subject()->asUnicodeString(), subject); | 410 | QCOMPARE(result->subject()->asUnicodeString(), subject); |
411 | QVERIFY(result->date(false)->dateTime().isValid()); | 411 | QVERIFY(result->date(false)->dateTime().isValid()); |
412 | 412 | ||
413 | QCOMPARE(result->contentType()->mimeType(), "multipart/mixed"); | 413 | QCOMPARE(result->contentType()->mimeType(), QByteArray{"multipart/mixed"}); |
414 | auto resultAttachments = result->attachments(); | 414 | auto resultAttachments = result->attachments(); |
415 | QCOMPARE(resultAttachments.size(), 1); | 415 | QCOMPARE(resultAttachments.size(), 1); |
416 | QCOMPARE(resultAttachments[0]->contentDisposition()->filename(), "0x8F246DE6.asc"); | 416 | QCOMPARE(resultAttachments[0]->contentDisposition()->filename(), {"0x8F246DE6.asc"}); |
417 | 417 | ||
418 | auto signedMessage = result->contents()[0]; | 418 | auto signedMessage = result->contents()[0]; |
419 | 419 | ||
@@ -450,12 +450,12 @@ private slots: | |||
450 | QCOMPARE(result->subject()->asUnicodeString(), subject); | 450 | QCOMPARE(result->subject()->asUnicodeString(), subject); |
451 | QVERIFY(result->date(false)->dateTime().isValid()); | 451 | QVERIFY(result->date(false)->dateTime().isValid()); |
452 | 452 | ||
453 | QCOMPARE(result->contentType()->mimeType(), "multipart/mixed"); | 453 | QCOMPARE(result->contentType()->mimeType(), QByteArray{"multipart/mixed"}); |
454 | auto resultAttachments = result->attachments(); | 454 | auto resultAttachments = result->attachments(); |
455 | QCOMPARE(resultAttachments.size(), 3); | 455 | QCOMPARE(resultAttachments.size(), 3); |
456 | // It seems KMime searches for the attachments using depth-first | 456 | // It seems KMime searches for the attachments using depth-first |
457 | // search, so the public key is last | 457 | // search, so the public key is last |
458 | QCOMPARE(resultAttachments[2]->contentDisposition()->filename(), "0x8F246DE6.asc"); | 458 | QCOMPARE(resultAttachments[2]->contentDisposition()->filename(), {"0x8F246DE6.asc"}); |
459 | 459 | ||
460 | auto signedMessage = result->contents()[0]; | 460 | auto signedMessage = result->contents()[0]; |
461 | 461 | ||