Commit 09288dfd authored by Laurent Montel's avatar Laurent Montel 😁

Add more autotests

parent 0d7a172f
......@@ -19,6 +19,7 @@
#include "autocorrectionplugineditorinterfacetest.h"
#include "../autocorrectionplugineditorinterface.h"
#include <KActionCollection>
#include <QTest>
AutoCorrectionPluginEditorInterfaceTest::AutoCorrectionPluginEditorInterfaceTest(QObject *parent)
......@@ -32,6 +33,11 @@ AutoCorrectionPluginEditorInterfaceTest::~AutoCorrectionPluginEditorInterfaceTes
void AutoCorrectionPluginEditorInterfaceTest::shouldHaveDefaultValue()
{
AutoCorrectionPluginEditorInterface interface(nullptr);
interface.createAction(new KActionCollection(this));
MessageComposer::ActionType type = interface.actionType();
QVERIFY(type.action());
QCOMPARE(type.type(), MessageComposer::ActionType::Edit);
}
QTEST_MAIN(AutoCorrectionPluginEditorInterfaceTest)
......@@ -19,6 +19,7 @@
#include "changecaseplugineditorinterfacetest.h"
#include "../changecaseplugineditorinterface.h"
#include <KActionCollection>
#include <QTest>
ChangeCasePluginEditorInterfaceTest::ChangeCasePluginEditorInterfaceTest(QObject *parent)
......@@ -32,6 +33,11 @@ ChangeCasePluginEditorInterfaceTest::~ChangeCasePluginEditorInterfaceTest()
void ChangeCasePluginEditorInterfaceTest::shouldHaveDefaultValues()
{
ChangeCasePluginEditorInterface interface(nullptr);
interface.createAction(new KActionCollection(this));
MessageComposer::ActionType type = interface.actionType();
QVERIFY(type.action());
QCOMPARE(type.type(), MessageComposer::ActionType::Edit);
}
QTEST_MAIN(ChangeCasePluginEditorInterfaceTest)
......@@ -19,6 +19,7 @@
#include "insertspecialcharacterplugineditorinterfacetest.h"
#include "../insertspecialcharacterplugineditorinterface.h"
#include <KActionCollection>
#include <QTest>
InsertSpecialCharacterPluginEditorInterfaceTest::InsertSpecialCharacterPluginEditorInterfaceTest(QObject *parent)
......@@ -32,6 +33,11 @@ InsertSpecialCharacterPluginEditorInterfaceTest::~InsertSpecialCharacterPluginEd
void InsertSpecialCharacterPluginEditorInterfaceTest::shouldHaveDefaultValue()
{
InsertSpecialCharacterPluginEditorInterface interface(nullptr);
interface.createAction(new KActionCollection(this));
MessageComposer::ActionType type = interface.actionType();
QVERIFY(type.action());
QCOMPARE(type.type(), MessageComposer::ActionType::Edit);
}
QTEST_MAIN(InsertSpecialCharacterPluginEditorInterfaceTest)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment