summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-05-02 07:33:46 +0200
committerMontel Laurent <[email protected]>2017-05-02 07:33:46 +0200
commit8a2bff0ce371f0bfdd3e5ecbe5dc90b6c740524d (patch)
tree621ecbc3db8597c1d02fe21d7c71178cdd406ac8
parent16630a8717ebba96a912789e57dc62e525414acf (diff)
implement autotest
-rw-r--r--kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.cpp9
-rw-r--r--kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.cpp b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.cpp
index 166b8d7..49756e4 100644
--- a/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.cpp
+++ b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.cpp
@@ -18,6 +18,8 @@
*/
#include "externalcomposerconfiguredialogtest.h"
+#include "../externalcomposerconfiguredialog.h"
+#include "../externalcomposerconfigurewidget.h"
#include <QTest>
ExternalComposerConfigureDialogTest::ExternalComposerConfigureDialogTest(QObject *parent)
@@ -26,4 +28,11 @@ ExternalComposerConfigureDialogTest::ExternalComposerConfigureDialogTest(QObject
}
+void ExternalComposerConfigureDialogTest::shouldHaveDefaultValues()
+{
+ ExternalComposerConfigureDialog dlg;
+ ExternalComposerConfigureWidget *w = dlg.findChild<ExternalComposerConfigureWidget *>(QStringLiteral("configurewidget"));
+ QVERIFY(w);
+}
+
QTEST_MAIN(ExternalComposerConfigureDialogTest)
diff --git a/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.h b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.h
index 641c753..6071b42 100644
--- a/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.h
+++ b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.h
@@ -29,6 +29,8 @@ class ExternalComposerConfigureDialogTest : public QObject
public:
explicit ExternalComposerConfigureDialogTest(QObject *parent = nullptr);
~ExternalComposerConfigureDialogTest() = default;
+private Q_SLOTS:
+ void shouldHaveDefaultValues();
};
#endif // EXTERNALCOMPOSERCONFIGUREDIALOGTEST_H