File indexing completed on 2025-01-05 04:58:21

0001 /*
0002   SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: LGPL-2.0-or-later
0005 
0006 */
0007 
0008 #include "contenttypewidgettest.h"
0009 #include "../contenttypewidget.h"
0010 #include <QTest>
0011 ContentTypeWidgetTest::ContentTypeWidgetTest(QObject *parent)
0012     : QObject(parent)
0013 {
0014 }
0015 
0016 ContentTypeWidgetTest::~ContentTypeWidgetTest() = default;
0017 
0018 void ContentTypeWidgetTest::shouldHaveDefaultValue()
0019 {
0020     PimCommon::ContentTypeWidget widget;
0021     QVERIFY(widget.count() > 0);
0022     QCOMPARE(widget.currentIndex(), 0);
0023 }
0024 
0025 QTEST_MAIN(ContentTypeWidgetTest)
0026 
0027 #include "moc_contenttypewidgettest.cpp"