File indexing completed on 2024-11-17 04:51:16
0001 /* 0002 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #include "snippetselectattachmentwidgettest.h" 0008 #include "snippets/snippetselectattachmentwidget.h" 0009 #include <PimCommon/SimpleStringListEditor> 0010 #include <QTest> 0011 #include <QVBoxLayout> 0012 QTEST_MAIN(SnippetSelectAttachmentWidgetTest) 0013 SnippetSelectAttachmentWidgetTest::SnippetSelectAttachmentWidgetTest(QObject *parent) 0014 : QObject(parent) 0015 { 0016 } 0017 0018 void SnippetSelectAttachmentWidgetTest::shouldHaveDefaultValues() 0019 { 0020 MailCommon::SnippetSelectAttachmentWidget w; 0021 auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout")); 0022 QVERIFY(mainLayout); 0023 QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0)); 0024 0025 auto mEditor = w.findChild<PimCommon::SimpleStringListEditor *>(QStringLiteral("editor")); 0026 QVERIFY(mEditor); 0027 } 0028 0029 #include "moc_snippetselectattachmentwidgettest.cpp"