File indexing completed on 2024-12-01 04:35:24
0001 /* 0002 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #include "listmessagesfilterproxymodeltest.h" 0007 #include "model/listmessagesfilterproxymodel.h" 0008 #include <QTest> 0009 QTEST_GUILESS_MAIN(ListMessagesFilterProxyModelTest) 0010 0011 ListMessagesFilterProxyModelTest::ListMessagesFilterProxyModelTest(QObject *parent) 0012 : QObject(parent) 0013 { 0014 } 0015 0016 void ListMessagesFilterProxyModelTest::shouldHaveDefaultValues() 0017 { 0018 ListMessagesModel model; 0019 ListMessagesFilterProxyModel w(&model); 0020 QCOMPARE(w.filterCaseSensitivity(), Qt::CaseInsensitive); 0021 QCOMPARE(w.sortOrder(), Qt::DescendingOrder); 0022 QCOMPARE(w.filterRole(), ListMessagesModel::OriginalMessage); 0023 } 0024 0025 #include "moc_listmessagesfilterproxymodeltest.cpp"