diff options
Diffstat (limited to 'tests/accountstest.cpp')
-rw-r--r-- | tests/accountstest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/accountstest.cpp b/tests/accountstest.cpp index d12e7f4..8d0f2e6 100644 --- a/tests/accountstest.cpp +++ b/tests/accountstest.cpp | |||
@@ -51,7 +51,7 @@ private slots: | |||
51 | QString smtpUsername("smtpUsername"); | 51 | QString smtpUsername("smtpUsername"); |
52 | QString smtpPassword("smtpPassword"); | 52 | QString smtpPassword("smtpPassword"); |
53 | auto resource = ApplicationDomainType::createEntity<SinkResource>(); | 53 | auto resource = ApplicationDomainType::createEntity<SinkResource>(); |
54 | resource.setProperty("type", "org.kde.mailtransport"); | 54 | resource.setProperty("type", "sink.mailtransport"); |
55 | resource.setProperty("account", account.identifier()); | 55 | resource.setProperty("account", account.identifier()); |
56 | resource.setProperty("server", smtpServer); | 56 | resource.setProperty("server", smtpServer); |
57 | resource.setProperty("username", smtpUsername); | 57 | resource.setProperty("username", smtpUsername); |
@@ -62,7 +62,7 @@ private slots: | |||
62 | Store::fetchAll<SinkResource>(Query()).then<void, QList<SinkResource::Ptr>>([&](const QList<SinkResource::Ptr> &resources) { | 62 | Store::fetchAll<SinkResource>(Query()).then<void, QList<SinkResource::Ptr>>([&](const QList<SinkResource::Ptr> &resources) { |
63 | QCOMPARE(resources.size(), 1); | 63 | QCOMPARE(resources.size(), 1); |
64 | auto resource = resources.first(); | 64 | auto resource = resources.first(); |
65 | QCOMPARE(resource->getProperty("type").toString(), QString("org.kde.mailtransport")); | 65 | QCOMPARE(resource->getProperty("type").toString(), QString("sink.mailtransport")); |
66 | QCOMPARE(resource->getProperty("server").toString(), smtpServer); | 66 | QCOMPARE(resource->getProperty("server").toString(), smtpServer); |
67 | }) | 67 | }) |
68 | .exec().waitForFinished(); | 68 | .exec().waitForFinished(); |
@@ -110,7 +110,7 @@ private slots: | |||
110 | 110 | ||
111 | //Ensure the notifier only affects one type | 111 | //Ensure the notifier only affects one type |
112 | auto resource = ApplicationDomainType::createEntity<SinkResource>(); | 112 | auto resource = ApplicationDomainType::createEntity<SinkResource>(); |
113 | resource.setResourceType("org.kde.mailtransport"); | 113 | resource.setResourceType("sink.mailtransport"); |
114 | Store::create(resource).exec().waitForFinished(); | 114 | Store::create(resource).exec().waitForFinished(); |
115 | QTRY_COMPARE(model->rowCount(QModelIndex()), 2); | 115 | QTRY_COMPARE(model->rowCount(QModelIndex()), 2); |
116 | } | 116 | } |