File indexing completed on 2024-12-01 04:35:22
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 "commandtest.h" 0008 #include "commands/command.h" 0009 #include <QTest> 0010 QTEST_GUILESS_MAIN(CommandTest) 0011 0012 CommandTest::CommandTest(QObject *parent) 0013 : QObject(parent) 0014 { 0015 } 0016 0017 void CommandTest::shouldHaveDefaultValues() 0018 { 0019 Command c; 0020 QVERIFY(c.params().isEmpty()); 0021 QVERIFY(c.permissions().isEmpty()); 0022 QVERIFY(c.commandName().isEmpty()); 0023 QVERIFY(c.description().isEmpty()); 0024 QVERIFY(!c.clientOnly()); 0025 QVERIFY(!c.providesPreview()); 0026 } 0027 0028 #include "moc_commandtest.cpp"