Commit 75c0037d authored by Laurent Montel's avatar Laurent Montel 😁

Test plugineditor

parent 1136d7bc
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
#include "externalcomposerplugineditortest.h" #include "externalcomposerplugineditortest.h"
#include "../externalcomposerplugineditor.h"
#include <QTest> #include <QTest>
ExternalComposerPluginEditorTest::ExternalComposerPluginEditorTest(QObject *parent) ExternalComposerPluginEditorTest::ExternalComposerPluginEditorTest(QObject *parent)
...@@ -26,4 +27,11 @@ ExternalComposerPluginEditorTest::ExternalComposerPluginEditorTest(QObject *pare ...@@ -26,4 +27,11 @@ ExternalComposerPluginEditorTest::ExternalComposerPluginEditorTest(QObject *pare
} }
void ExternalComposerPluginEditorTest::shouldHaveDefaultValue()
{
ExternalComposerPluginEditor plugin;
QVERIFY(plugin.hasConfigureDialog());
QVERIFY(plugin.createInterface(nullptr));
}
QTEST_MAIN(ExternalComposerPluginEditorTest) QTEST_MAIN(ExternalComposerPluginEditorTest)
...@@ -28,6 +28,10 @@ class ExternalComposerPluginEditorTest : public QObject ...@@ -28,6 +28,10 @@ class ExternalComposerPluginEditorTest : public QObject
public: public:
explicit ExternalComposerPluginEditorTest(QObject *parent = nullptr); explicit ExternalComposerPluginEditorTest(QObject *parent = nullptr);
~ExternalComposerPluginEditorTest() = default; ~ExternalComposerPluginEditorTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValue();
}; };
#endif // EXTERNALCOMPOSERPLUGINEDITORTEST_H #endif // EXTERNALCOMPOSERPLUGINEDITORTEST_H
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