From 42f70f035f7c7799ace26f6dfc85d189ec27f5ae Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 15 Dec 2016 10:47:32 +0100 Subject: Use the accessors ...to properly wrap references. --- tests/accountstest.cpp | 6 +++--- 1 file 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: .exec().waitForFinished(); auto identity = ApplicationDomainType::createEntity(); - identity.setProperty("name", smtpServer); - identity.setProperty("address", smtpUsername); - identity.setProperty("account", account.identifier()); + identity.setName(smtpServer); + identity.setAddress(smtpUsername); + identity.setAccount(account.identifier()); Store::create(identity).exec().waitForFinished(); Store::fetchAll(Query()).syncThen>([&](const QList &identities) { -- cgit v1.2.3