File indexing completed on 2024-12-22 04:45:58

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "clickablewidgettest.h"
0008 #include "misc/clickablewidget.h"
0009 #include <QTest>
0010 QTEST_MAIN(ClickableWidgetTest)
0011 ClickableWidgetTest::ClickableWidgetTest(QObject *parent)
0012     : QObject(parent)
0013 {
0014 }
0015 
0016 void ClickableWidgetTest::shouldHaveDefaultValues()
0017 {
0018     ClickableWidget w(QStringLiteral("foo"));
0019     QVERIFY(!w.name().isEmpty()); // See foo in constructor
0020     QVERIFY(w.identifier().isEmpty());
0021 }
0022 
0023 #include "moc_clickablewidgettest.cpp"