summaryrefslogtreecommitdiffstats
path: root/tests/accountstest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-15 10:47:32 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-15 10:47:32 +0100
commit42f70f035f7c7799ace26f6dfc85d189ec27f5ae (patch)
tree848871d8ff899a47c3eebb3b691c0a697137a0fb /tests/accountstest.cpp
parentd09517a4d4fcdf496c0298ef8b8f54f3c9120293 (diff)
downloadsink-42f70f035f7c7799ace26f6dfc85d189ec27f5ae.tar.gz
sink-42f70f035f7c7799ace26f6dfc85d189ec27f5ae.zip
Use the accessors
...to properly wrap references.
Diffstat (limited to 'tests/accountstest.cpp')
-rw-r--r--tests/accountstest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/accountstest.cpp b/tests/accountstest.cpp
index 88b13f3..029b92f 100644
--- a/tests/accountstest.cpp
+++ b/tests/accountstest.cpp
@@ -69,9 +69,9 @@ private slots:
69 .exec().waitForFinished(); 69 .exec().waitForFinished();
70 70
71 auto identity = ApplicationDomainType::createEntity<Identity>(); 71 auto identity = ApplicationDomainType::createEntity<Identity>();
72 identity.setProperty("name", smtpServer); 72 identity.setName(smtpServer);
73 identity.setProperty("address", smtpUsername); 73 identity.setAddress(smtpUsername);
74 identity.setProperty("account", account.identifier()); 74 identity.setAccount(account.identifier());
75 Store::create(identity).exec().waitForFinished(); 75 Store::create(identity).exec().waitForFinished();
76 76
77 Store::fetchAll<Identity>(Query()).syncThen<void, QList<Identity::Ptr>>([&](const QList<Identity::Ptr> &identities) { 77 Store::fetchAll<Identity>(Query()).syncThen<void, QList<Identity::Ptr>>([&](const QList<Identity::Ptr> &identities) {