summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-17 05:50:01 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-17 05:50:01 (GMT)
commit54b2a3dfe34520517edb87ff70d9760ece454446 (patch)
tree2dc3c34bbcbe3cb0748113713020c5ed46569bd1
parent0fee5f264f540363be2766fbdc069531a404c263 (diff)
not necessary to change KDEHOME. Create some identities
-rw-r--r--messagecomposer/autotests/messagefactorytest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/messagecomposer/autotests/messagefactorytest.cpp b/messagecomposer/autotests/messagefactorytest.cpp
index 5fdbd04..a49cb10 100644
--- a/messagecomposer/autotests/messagefactorytest.cpp
+++ b/messagecomposer/autotests/messagefactorytest.cpp
@@ -128,16 +128,17 @@ QTEST_MAIN(MessageFactoryTest)
void MessageFactoryTest::initTestCase()
{
- // Force fake XDG dirs and KDEHOME so that KIdentityManagement does not
+ // Force fake XDG dirs so that KIdentityManagement does not
// read actual user data when running tests locally
QStandardPaths::setTestModeEnabled(true);
- qputenv("KDEHOME", "~/.qttest/kde");
}
void MessageFactoryTest::testCreateReply()
{
KMime::Message::Ptr msg = createPlainTestMessage();
KIdentityManagement::IdentityManager *identMan = new KIdentityManagement::IdentityManager;
+ identMan->newFromScratch(QStringLiteral("foo"));
+ identMan->commit();
MessageFactory factory(msg, 0);
factory.setIdentityManager(identMan);