summaryrefslogtreecommitdiffstats
path: root/tests/accountstest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-07-08 11:22:40 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-07-08 11:36:32 +0200
commit81fa4c3635a029b1c8f9cc3cd670f0b04f1c3f21 (patch)
tree3acd44ee1d055e4dfe6c8c0409406235b39e0980 /tests/accountstest.cpp
parent9317fbffeab4a8c258acb1116eb12fbded7053d8 (diff)
downloadsink-81fa4c3635a029b1c8f9cc3cd670f0b04f1c3f21.tar.gz
sink-81fa4c3635a029b1c8f9cc3cd670f0b04f1c3f21.zip
Shorten the types to be more distinctive.
The org.kde prefix is useless and possibly misleading. Simply prefixing with sink is more unique and shorter.
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 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 }