summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-05-04 13:41:31 +0200
committerMontel Laurent <[email protected]>2017-05-04 13:41:31 +0200
commit75c0037d9183469d6716f0fdb1e67226efa57f86 (patch)
tree2f49c57e17fb789abb99611a7a3af036be5e48c1
parent1136d7bcba277c48cd9c722ace4f06edc933ee0c (diff)
Test plugineditor
-rw-r--r--kmail/editorinitplugins/externalcomposer/autotests/externalcomposerplugineditortest.cpp8
-rw-r--r--kmail/editorinitplugins/externalcomposer/autotests/externalcomposerplugineditortest.h4
2 files changed, 12 insertions, 0 deletions
diff --git a/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerplugineditortest.cpp b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerplugineditortest.cpp
index 2f25960..b9ac0ae 100644
--- a/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerplugineditortest.cpp
+++ b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerplugineditortest.cpp
@@ -18,6 +18,7 @@
*/
#include "externalcomposerplugineditortest.h"
+#include "../externalcomposerplugineditor.h"
#include <QTest>
ExternalComposerPluginEditorTest::ExternalComposerPluginEditorTest(QObject *parent)
@@ -26,4 +27,11 @@ ExternalComposerPluginEditorTest::ExternalComposerPluginEditorTest(QObject *pare
}
+void ExternalComposerPluginEditorTest::shouldHaveDefaultValue()
+{
+ ExternalComposerPluginEditor plugin;
+ QVERIFY(plugin.hasConfigureDialog());
+ QVERIFY(plugin.createInterface(nullptr));
+}
+
QTEST_MAIN(ExternalComposerPluginEditorTest)
diff --git a/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerplugineditortest.h b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerplugineditortest.h
index eebc23d..eba61a9 100644
--- a/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerplugineditortest.h
+++ b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerplugineditortest.h
@@ -28,6 +28,10 @@ class ExternalComposerPluginEditorTest : public QObject
public:
explicit ExternalComposerPluginEditorTest(QObject *parent = nullptr);
~ExternalComposerPluginEditorTest() = default;
+
+private Q_SLOTS:
+ void shouldHaveDefaultValue();
+
};
#endif // EXTERNALCOMPOSERPLUGINEDITORTEST_H