kactionmenutransporttest.cpp 589 Bytes
Newer Older
1
/*
Laurent Montel's avatar
Laurent Montel committed
2
  SPDX-FileCopyrightText: 2015-2021 Laurent Montel <montel@kde.org>
3

4
  SPDX-License-Identifier: GPL-2.0-only
5
6
7
8
*/

#include "kactionmenutransporttest.h"
#include "../widgets/kactionmenutransport.h"
Laurent Montel's avatar
Laurent Montel committed
9
#include <QMenu>
Laurent Montel's avatar
Laurent Montel committed
10
#include <QTest>
11
12
13
14
15
KActionMenuTransportTest::KActionMenuTransportTest(QObject *parent)
    : QObject(parent)
{
}

Laurent Montel's avatar
Laurent Montel committed
16
KActionMenuTransportTest::~KActionMenuTransportTest() = default;
17
18
19
20
21
22
23
24

void KActionMenuTransportTest::shouldHaveDefaultValue()
{
    KActionMenuTransport w;
    QVERIFY(w.menu());
    QCOMPARE(w.menu()->actions().count(), 0);
}

Laurent Montel's avatar
Laurent Montel committed
25
QTEST_MAIN(KActionMenuTransportTest)