diff options
Diffstat (limited to 'framework/domain/actions/tests/sinkactiontest.cpp')
-rw-r--r-- | framework/domain/actions/tests/sinkactiontest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/domain/actions/tests/sinkactiontest.cpp b/framework/domain/actions/tests/sinkactiontest.cpp index 3ba9ffb9..79375503 100644 --- a/framework/domain/actions/tests/sinkactiontest.cpp +++ b/framework/domain/actions/tests/sinkactiontest.cpp | |||
@@ -39,8 +39,6 @@ private slots: | |||
39 | message->assemble(); | 39 | message->assemble(); |
40 | 40 | ||
41 | auto &&account = Test::TestAccount::registerAccount(); | 41 | auto &&account = Test::TestAccount::registerAccount(); |
42 | auto folder = account.createEntity<ApplicationDomain::Folder>(); | ||
43 | folder->setProperty("specialpurpose", QVariant::fromValue(QByteArrayList() << "drafts")); | ||
44 | 42 | ||
45 | Kube::Context context; | 43 | Kube::Context context; |
46 | context.setProperty("message", QVariant::fromValue(message)); | 44 | context.setProperty("message", QVariant::fromValue(message)); |
@@ -52,7 +50,7 @@ private slots: | |||
52 | auto mails = account.entities<Sink::ApplicationDomain::Mail>(); | 50 | auto mails = account.entities<Sink::ApplicationDomain::Mail>(); |
53 | QCOMPARE(mails.size(), 1); | 51 | QCOMPARE(mails.size(), 1); |
54 | auto mail = mails.first(); | 52 | auto mail = mails.first(); |
55 | QCOMPARE(mail->getProperty("folder").toByteArray(), folder->identifier()); | 53 | QVERIFY(mail->getProperty("draft").toBool()); |
56 | } | 54 | } |
57 | }; | 55 | }; |
58 | 56 | ||