summaryrefslogtreecommitdiffstats
path: root/framework/domain/actions/tests/sinkactiontest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-09 21:20:07 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-09 21:20:07 +0200
commit3a20cdfdde74716c3748fad28f6f85b07200e222 (patch)
tree18dc474130928c1439de7994269b8ff7ced143e3 /framework/domain/actions/tests/sinkactiontest.cpp
parent7a3d810157e75bc16a08206bf924b326bb30dce7 (diff)
downloadkube-3a20cdfdde74716c3748fad28f6f85b07200e222.tar.gz
kube-3a20cdfdde74716c3748fad28f6f85b07200e222.zip
A working save-as-draft action
Diffstat (limited to 'framework/domain/actions/tests/sinkactiontest.cpp')
-rw-r--r--framework/domain/actions/tests/sinkactiontest.cpp4
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