From 75c0037d9183469d6716f0fdb1e67226efa57f86 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Thu, 4 May 2017 13:41:31 +0200 Subject: [PATCH] Test plugineditor --- .../autotests/externalcomposerplugineditortest.cpp | 8 ++++++++ .../autotests/externalcomposerplugineditortest.h | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerplugineditortest.cpp b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerplugineditortest.cpp index 2f259603..b9ac0aed 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 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 eebc23d3..eba61a99 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 -- GitLab