File indexing completed on 2024-11-24 04:39:29
0001 /* 0002 This file is part of Contact Editor. 0003 0004 SPDX-FileCopyrightText: 2016 eyeOS S.L.U., a Telefonica company, sales@eyeos.com 0005 SPDX-FileCopyrightText: 2016-2020 Laurent Montel <montel.org> 0006 0007 SPDX-License-Identifier: LGPL-2.0-or-later 0008 */ 0009 0010 #include "customfieldswidgettest.h" 0011 #include "../customfieldeditorwidget.h" 0012 #include "../customfieldslistwidget.h" 0013 #include "../customfieldswidget.h" 0014 #include <QTest> 0015 0016 CustomFieldsWidgetTest::CustomFieldsWidgetTest(QObject *parent) 0017 : QObject(parent) 0018 { 0019 } 0020 0021 CustomFieldsWidgetTest::~CustomFieldsWidgetTest() = default; 0022 0023 void CustomFieldsWidgetTest::shouldHaveDefaultValue() 0024 { 0025 Akonadi::CustomFieldsWidget w; 0026 auto customFieldEditorWidget = w.findChild<Akonadi::CustomFieldEditorWidget *>(QStringLiteral("customfieldeditorwidget")); 0027 QVERIFY(customFieldEditorWidget); 0028 0029 auto customFieldsListWidget = w.findChild<Akonadi::CustomFieldsListWidget *>(QStringLiteral("customfieldslistwidget")); 0030 QVERIFY(customFieldsListWidget); 0031 } 0032 0033 QTEST_MAIN(CustomFieldsWidgetTest) 0034 0035 #include "moc_customfieldswidgettest.cpp"