File indexing completed on 2025-02-02 04:51:23

0001 /*
0002    SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "createchannelteaminfotest.h"
0008 #include "createchannelteaminfo.h"
0009 #include <QTest>
0010 QTEST_GUILESS_MAIN(CreateChannelTeamInfoTest)
0011 
0012 CreateChannelTeamInfoTest::CreateChannelTeamInfoTest(QObject *parent)
0013     : QObject(parent)
0014 {
0015 }
0016 
0017 void CreateChannelTeamInfoTest::shouldHaveDefaultValues()
0018 {
0019     RocketChatRestApi::CreateChannelTeamInfo info;
0020     QVERIFY(info.members.isEmpty());
0021     QVERIFY(info.name.isEmpty());
0022     QVERIFY(info.description.isEmpty());
0023     QVERIFY(info.teamId.isEmpty());
0024     QVERIFY(!info.readOnly);
0025     QVERIFY(!info.broadcast);
0026     QVERIFY(!info.encrypted);
0027     QVERIFY(!info.isValid());
0028 }
0029 
0030 #include "moc_createchannelteaminfotest.cpp"