summaryrefslogtreecommitdiffstats
path: root/tests/accountstest.cpp
diff options
context:
space:
mode:
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) {