File indexing completed on 2024-12-29 04:54:51

0001 /*
0002    SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "includefilelineedittest.h"
0008 #include "../includefilelineedit.h"
0009 #include <QCompleter>
0010 #include <QTest>
0011 
0012 IncludeFileLineEditTest::IncludeFileLineEditTest(QObject *parent)
0013     : QObject(parent)
0014 {
0015 }
0016 
0017 void IncludeFileLineEditTest::shouldHaveDefaultValue()
0018 {
0019     KSieveUi::IncludeFileLineEdit w;
0020     auto completer = w.findChild<QCompleter *>(QStringLiteral("completer"));
0021     QVERIFY(completer);
0022     QVERIFY(w.completer());
0023     QCOMPARE(completer->caseSensitivity(), Qt::CaseInsensitive);
0024 }
0025 
0026 QTEST_MAIN(IncludeFileLineEditTest)
0027 
0028 #include "moc_includefilelineedittest.cpp"