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 2c1a2345 authored by Laurent Montel's avatar Laurent Montel 😁

Verify that menu is not empty

parent 7430a64e
......@@ -20,6 +20,7 @@
#include "templatesinsertcommandactiontest.h"
#include "templatesinsertcommandaction.h"
#include "templatescommandmenu.h"
#include <QMenu>
#include <QTest>
QTEST_MAIN(TemplatesInsertCommandActionTest)
......@@ -33,6 +34,7 @@ void TemplatesInsertCommandActionTest::shouldHaveDefaultValue()
{
TemplateParser::TemplatesInsertCommandAction act;
QVERIFY(act.menu());
QVERIFY(!act.menu()->isEmpty());
TemplateParser::TemplatesCommandMenu *menu = act.findChild<TemplateParser::TemplatesCommandMenu *>(QStringLiteral("templatescommandmenu"));
QVERIFY(menu);
}
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