File indexing completed on 2024-12-01 04:35:23

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 "customuserstatustest.h"
0008 #include "customusers/customuserstatus.h"
0009 #include <QTest>
0010 QTEST_GUILESS_MAIN(CustomUserStatusTest)
0011 
0012 CustomUserStatusTest::CustomUserStatusTest(QObject *parent)
0013     : QObject(parent)
0014 {
0015 }
0016 
0017 void CustomUserStatusTest::shouldHaveDefaultValues()
0018 {
0019     CustomUserStatus w;
0020     QVERIFY(!w.isValid());
0021 
0022     QVERIFY(w.name().isEmpty());
0023     QVERIFY(w.identifier().isEmpty());
0024     QCOMPARE(w.statusType(), User::PresenceStatus::Unknown);
0025     QCOMPARE(w.updatedAt(), -1);
0026 }
0027 
0028 #include "moc_customuserstatustest.cpp"