File indexing completed on 2024-12-15 04:55:35
0001 /* 0002 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "importimapsettingnofoundpagetest.h" 0008 #include "../importimapsettingnofoundpage.h" 0009 #include <QLabel> 0010 #include <QTest> 0011 #include <QVBoxLayout> 0012 0013 ImportImapSettingNoFoundPageTest::ImportImapSettingNoFoundPageTest(QObject *parent) 0014 : QObject(parent) 0015 { 0016 } 0017 0018 ImportImapSettingNoFoundPageTest::~ImportImapSettingNoFoundPageTest() = default; 0019 0020 void ImportImapSettingNoFoundPageTest::shouldHaveDefaultValue() 0021 { 0022 ImportImapSettingNoFoundPage w; 0023 auto lab = w.findChild<QLabel *>(QStringLiteral("label")); 0024 QVERIFY(lab); 0025 QVERIFY(!lab->text().isEmpty()); 0026 0027 auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout")); 0028 QVERIFY(mainLayout); 0029 } 0030 0031 QTEST_MAIN(ImportImapSettingNoFoundPageTest) 0032 0033 #include "moc_importimapsettingnofoundpagetest.cpp"