summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-30 06:42:21 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-30 06:42:21 (GMT)
commit9ed10fea0bf357abe0ad04b593c27094cd47ab49 (patch)
tree26dfeddde5fd8dffab3833e0594e3eb1d4ad7292
parent489fe768e831b9547b9b75146d19e1468d53b116 (diff)
Start to add signature autotest
-rw-r--r--messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
index 6dba6c3..f4f2784 100644
--- a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
+++ b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
@@ -20,6 +20,7 @@
#include "richtextcomposerngtest.h"
#include "../richtextcomposerng.h"
+#include "../richtextcomposersignatures.h"
#include <PimCommon/AutoCorrection>
#include <QTest>
@@ -111,6 +112,11 @@ void RichTextComposerNgTest::shouldForceAutoCorrectionWithSelection()
void RichTextComposerNgTest::shouldAddSignature()
{
+ MessageComposer::RichTextComposerNg richtextComposerNg;
+ KIdentityManagement::Signature oldSignature;
+
+ const bool replaceSignature = richtextComposerNg.composerSignature()->replaceSignature(oldSignature, oldSignature);
+ QVERIFY(!replaceSignature);
//TODO
}