File indexing completed on 2024-05-12 16:25:33

0001 /*
0002    SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "statusmodeltest.h"
0008 #include "model/statusmodel.h"
0009 #include <QTest>
0010 
0011 QTEST_GUILESS_MAIN(StatusModelTest)
0012 
0013 StatusModelTest::StatusModelTest(QObject *parent)
0014     : QObject(parent)
0015 {
0016 }
0017 
0018 void StatusModelTest::shouldHaveDefaultValue()
0019 {
0020     StatusModel w;
0021     QCOMPARE(w.rowCount(), 5);
0022 
0023     QCOMPARE(w.currentStatus(), 0);
0024     QVERIFY(w.customText().isEmpty());
0025 }
0026 
0027 // TODO add autotest about currentStatus changed !
0028 
0029 #include "moc_statusmodeltest.cpp"