From 2ba6d31b13edbb54e8a4ea98e604faec86b3c3e7 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Thu, 2 Jun 2016 08:17:44 +0200 Subject: [PATCH] Add more autotests --- .../autotests/changecaseplugineditorinterfacetest.cpp | 8 ++++++++ .../autotests/changecaseplugineditorinterfacetest.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/kmail/editorplugins/changecase/autotests/changecaseplugineditorinterfacetest.cpp b/kmail/editorplugins/changecase/autotests/changecaseplugineditorinterfacetest.cpp index eb6a1f1e..eacb6767 100644 --- a/kmail/editorplugins/changecase/autotests/changecaseplugineditorinterfacetest.cpp +++ b/kmail/editorplugins/changecase/autotests/changecaseplugineditorinterfacetest.cpp @@ -30,4 +30,12 @@ ChangeCasePluginEditorInterfaceTest::~ChangeCasePluginEditorInterfaceTest() } +void ChangeCasePluginEditorInterfaceTest::shouldHaveDefaultValues() +{ + ChangeCasePluginEditorInterface interface; + QVERIFY(interface.hasPopupMenuSupport()); + QVERIFY(!interface.hasConfigureDialog()); + QVERIFY(!interface.hasToolBarSupport()); +} + QTEST_MAIN(ChangeCasePluginEditorInterfaceTest) diff --git a/kmail/editorplugins/changecase/autotests/changecaseplugineditorinterfacetest.h b/kmail/editorplugins/changecase/autotests/changecaseplugineditorinterfacetest.h index 5aa12546..e7613f29 100644 --- a/kmail/editorplugins/changecase/autotests/changecaseplugineditorinterfacetest.h +++ b/kmail/editorplugins/changecase/autotests/changecaseplugineditorinterfacetest.h @@ -26,6 +26,8 @@ class ChangeCasePluginEditorInterfaceTest : public QObject public: explicit ChangeCasePluginEditorInterfaceTest(QObject *parent = Q_NULLPTR); ~ChangeCasePluginEditorInterfaceTest(); +private Q_SLOTS: + void shouldHaveDefaultValues(); }; #endif -- GitLab