Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 7430a64e authored by Laurent Montel's avatar Laurent Montel 😁

Check menu too

parent 0c52dc29
......@@ -18,6 +18,8 @@
*/
#include "templatesinsertcommandactiontest.h"
#include "templatesinsertcommandaction.h"
#include "templatescommandmenu.h"
#include <QTest>
QTEST_MAIN(TemplatesInsertCommandActionTest)
......@@ -26,3 +28,11 @@ TemplatesInsertCommandActionTest::TemplatesInsertCommandActionTest(QObject *pare
{
}
void TemplatesInsertCommandActionTest::shouldHaveDefaultValue()
{
TemplateParser::TemplatesInsertCommandAction act;
QVERIFY(act.menu());
TemplateParser::TemplatesCommandMenu *menu = act.findChild<TemplateParser::TemplatesCommandMenu *>(QStringLiteral("templatescommandmenu"));
QVERIFY(menu);
}
......@@ -28,6 +28,9 @@ class TemplatesInsertCommandActionTest : public QObject
public:
explicit TemplatesInsertCommandActionTest(QObject *parent = nullptr);
~TemplatesInsertCommandActionTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // TEMPLATESINSERTCOMMANDACTIONTEST_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