Commit 8a2bff0c authored by Laurent Montel's avatar Laurent Montel 😁

implement autotest

parent 16630a87
......@@ -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)
......@@ -29,6 +29,8 @@ class ExternalComposerConfigureDialogTest : public QObject
public:
explicit ExternalComposerConfigureDialogTest(QObject *parent = nullptr);
~ExternalComposerConfigureDialogTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValues();
};
#endif // EXTERNALCOMPOSERCONFIGUREDIALOGTEST_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