File indexing completed on 2024-12-22 05:00:59

0001 /*
0002   SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-only
0005 */
0006 
0007 #include "kactionmenutransporttest.h"
0008 #include "../widgets/kactionmenutransport.h"
0009 #include <QMenu>
0010 #include <QTest>
0011 KActionMenuTransportTest::KActionMenuTransportTest(QObject *parent)
0012     : QObject(parent)
0013 {
0014 }
0015 
0016 KActionMenuTransportTest::~KActionMenuTransportTest() = default;
0017 
0018 void KActionMenuTransportTest::shouldHaveDefaultValue()
0019 {
0020     KActionMenuTransport w;
0021     QVERIFY(w.menu());
0022     QCOMPARE(w.menu()->actions().count(), 0);
0023 }
0024 
0025 QTEST_MAIN(KActionMenuTransportTest)
0026 
0027 #include "moc_kactionmenutransporttest.cpp"