diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-11 08:39:43 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-11 08:39:43 +0200 |
commit | 68fcd3e123e9c0e345d95728d0c8742e53be940a (patch) | |
tree | e4e79abf7f3f2262871675a12f37d38f60fad71e /tests/accountstest.cpp | |
parent | 9f5e4a488360c2c0232a12b65e9d1c8366c0bc8b (diff) | |
download | sink-68fcd3e123e9c0e345d95728d0c8742e53be940a.tar.gz sink-68fcd3e123e9c0e345d95728d0c8742e53be940a.zip |
Use ConfigStore for accounts
Diffstat (limited to 'tests/accountstest.cpp')
-rw-r--r-- | tests/accountstest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ | |||
5 | 5 | ||
6 | #include <test.h> | 6 | #include <test.h> |
7 | #include <store.h> | 7 | #include <store.h> |
8 | #include <log.h> | ||
8 | 9 | ||
9 | class AccountsTest : public QObject | 10 | class AccountsTest : public QObject |
10 | { | 11 | { |
@@ -14,6 +15,7 @@ private slots: | |||
14 | void initTestCase() | 15 | void initTestCase() |
15 | { | 16 | { |
16 | Sink::Test::initTest(); | 17 | Sink::Test::initTest(); |
18 | Sink::Log::setDebugOutputLevel(Sink::Log::Trace); | ||
17 | } | 19 | } |
18 | 20 | ||
19 | void testLoad() | 21 | void testLoad() |
@@ -24,6 +26,8 @@ private slots: | |||
24 | QString accountName("name"); | 26 | QString accountName("name"); |
25 | QString accountIcon("icon"); | 27 | QString accountIcon("icon"); |
26 | auto account = ApplicationDomainType::createEntity<SinkAccount>(); | 28 | auto account = ApplicationDomainType::createEntity<SinkAccount>(); |
29 | //FIXME Get rid of this line | ||
30 | account.setProperty("identifier", account.identifier()); | ||
27 | account.setProperty("type", "maildir"); | 31 | account.setProperty("type", "maildir"); |
28 | account.setProperty("name", accountName); | 32 | account.setProperty("name", accountName); |
29 | account.setProperty("icon", accountIcon); | 33 | account.setProperty("icon", accountIcon); |
@@ -38,6 +42,8 @@ private slots: | |||
38 | QString smtpUsername("smtpUsername"); | 42 | QString smtpUsername("smtpUsername"); |
39 | QString smtpPassword("smtpPassword"); | 43 | QString smtpPassword("smtpPassword"); |
40 | auto resource = ApplicationDomainType::createEntity<SinkResource>(); | 44 | auto resource = ApplicationDomainType::createEntity<SinkResource>(); |
45 | //FIXME Get rid of this line | ||
46 | resource.setProperty("identifier", resource.identifier()); | ||
41 | resource.setProperty("type", "org.kde.mailtransport"); | 47 | resource.setProperty("type", "org.kde.mailtransport"); |
42 | resource.setProperty("account", account.identifier()); | 48 | resource.setProperty("account", account.identifier()); |
43 | resource.setProperty("server", smtpServer); | 49 | resource.setProperty("server", smtpServer); |