File indexing completed on 2024-12-22 05:01:09

0001 /*
0002 This file is part of KMail, the KDE mail client.
0003 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0004 
0005 SPDX-License-Identifier: GPL-2.0-only
0006 */
0007 
0008 #include "collectionswitchertreeviewmanagertest.h"
0009 #include "historyswitchfolder/collectionswitchertreeview.h"
0010 #include "historyswitchfolder/collectionswitchertreeviewmanager.h"
0011 #include <QTest>
0012 QTEST_MAIN(CollectionSwitcherTreeViewManagerTest)
0013 CollectionSwitcherTreeViewManagerTest::CollectionSwitcherTreeViewManagerTest(QObject *parent)
0014     : QObject{parent}
0015 {
0016 }
0017 
0018 void CollectionSwitcherTreeViewManagerTest::shouldHaveDefaultValues()
0019 {
0020     CollectionSwitcherTreeViewManager m;
0021     QVERIFY(!m.parentWidget());
0022 
0023     QVERIFY(m.collectionSwitcherTreeView());
0024     QVERIFY(m.collectionSwitcherTreeView()->model());
0025 }
0026 
0027 #include "moc_collectionswitchertreeviewmanagertest.cpp"