From 68fcd3e123e9c0e345d95728d0c8742e53be940a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 11 Apr 2016 08:39:43 +0200 Subject: Use ConfigStore for accounts --- tests/accountstest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/accountstest.cpp b/tests/accountstest.cpp index 0ae10ec..dc74d15 100644 --- a/tests/accountstest.cpp +++ b/tests/accountstest.cpp @@ -5,6 +5,7 @@ #include #include +#include class AccountsTest : public QObject { @@ -14,6 +15,7 @@ private slots: void initTestCase() { Sink::Test::initTest(); + Sink::Log::setDebugOutputLevel(Sink::Log::Trace); } void testLoad() @@ -24,6 +26,8 @@ private slots: QString accountName("name"); QString accountIcon("icon"); auto account = ApplicationDomainType::createEntity(); + //FIXME Get rid of this line + account.setProperty("identifier", account.identifier()); account.setProperty("type", "maildir"); account.setProperty("name", accountName); account.setProperty("icon", accountIcon); @@ -38,6 +42,8 @@ private slots: QString smtpUsername("smtpUsername"); QString smtpPassword("smtpPassword"); auto resource = ApplicationDomainType::createEntity(); + //FIXME Get rid of this line + resource.setProperty("identifier", resource.identifier()); resource.setProperty("type", "org.kde.mailtransport"); resource.setProperty("account", account.identifier()); resource.setProperty("server", smtpServer); -- cgit v1.2.3