summaryrefslogtreecommitdiffstats
path: root/tests/mailsynctest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-15 17:26:59 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-15 17:26:59 +0100
commit7bd037fae43c963d5f67e9447b3ee6875591a2c7 (patch)
treee2537369bb21d12e77668f0b2e878cffc1b9b423 /tests/mailsynctest.cpp
parent20b4d255509d5a490619afef50e49477ea09c71d (diff)
downloadsink-7bd037fae43c963d5f67e9447b3ee6875591a2c7.tar.gz
sink-7bd037fae43c963d5f67e9447b3ee6875591a2c7.zip
Don't set capabilities as property on creation.
Instead we make it part of the plugin. This ensure we also have access to the proper capabilities when creating a resource via sinksh.
Diffstat (limited to 'tests/mailsynctest.cpp')
-rw-r--r--tests/mailsynctest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/mailsynctest.cpp b/tests/mailsynctest.cpp
index 6658d8b..31e40c4 100644
--- a/tests/mailsynctest.cpp
+++ b/tests/mailsynctest.cpp
@@ -46,7 +46,9 @@ void MailSyncTest::initTestCase()
46 VERIFYEXEC(Store::create(resource)); 46 VERIFYEXEC(Store::create(resource));
47 47
48 mResourceInstanceIdentifier = resource.identifier(); 48 mResourceInstanceIdentifier = resource.identifier();
49 mCapabilities = resource.getProperty("capabilities").value<QByteArrayList>(); 49 //Load the capabilities
50 resource = Store::readOne<Sink::ApplicationDomain::SinkResource>(Sink::Query{resource});
51 mCapabilities = resource.getCapabilities();
50} 52}
51 53
52void MailSyncTest::cleanup() 54void MailSyncTest::cleanup()