File indexing completed on 2025-02-16 04:49:27

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "insertspecialcharacterplugineditortest.h"
0008 #include "../insertspecialcharacterplugineditor.h"
0009 #include <QTest>
0010 
0011 InsertSpecialCharacterPluginEditorTest::InsertSpecialCharacterPluginEditorTest(QObject *parent)
0012     : QObject(parent)
0013 {
0014 }
0015 
0016 InsertSpecialCharacterPluginEditorTest::~InsertSpecialCharacterPluginEditorTest() = default;
0017 
0018 void InsertSpecialCharacterPluginEditorTest::shouldHaveDefaultValue()
0019 {
0020     InsertSpecialCharacterPluginEditor plugin;
0021     auto interface = plugin.createInterface();
0022     QVERIFY(interface);
0023     QVERIFY(!plugin.hasConfigureDialog());
0024     QVERIFY(!plugin.hasPopupMenuSupport());
0025     QVERIFY(!plugin.hasToolBarSupport());
0026     delete interface;
0027 }
0028 
0029 QTEST_MAIN(InsertSpecialCharacterPluginEditorTest)
0030 
0031 #include "moc_insertspecialcharacterplugineditortest.cpp"