From 3a20cdfdde74716c3748fad28f6f85b07200e222 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 9 May 2016 21:20:07 +0200 Subject: A working save-as-draft action --- framework/domain/actions/tests/sinkactiontest.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'framework/domain/actions/tests/sinkactiontest.cpp') 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: message->assemble(); auto &&account = Test::TestAccount::registerAccount(); - auto folder = account.createEntity(); - folder->setProperty("specialpurpose", QVariant::fromValue(QByteArrayList() << "drafts")); Kube::Context context; context.setProperty("message", QVariant::fromValue(message)); @@ -52,7 +50,7 @@ private slots: auto mails = account.entities(); QCOMPARE(mails.size(), 1); auto mail = mails.first(); - QCOMPARE(mail->getProperty("folder").toByteArray(), folder->identifier()); + QVERIFY(mail->getProperty("draft").toBool()); } }; -- cgit v1.2.3