File indexing completed on 2024-12-22 04:45:34
0001 /* 0002 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "administratorcustomsoundswidgettest.h" 0008 #include "administratordialog/customsounds/administratorcustomsoundswidget.h" 0009 #include "model/admincustomsoundmodel.h" 0010 #include "model/searchtreebasefilterproxymodel.h" 0011 #include <KTreeWidgetSearchLineWidget> 0012 #include <QTest> 0013 #include <QVBoxLayout> 0014 QTEST_MAIN(AdministratorCustomSoundsWidgetTest) 0015 AdministratorCustomSoundsWidgetTest::AdministratorCustomSoundsWidgetTest(QObject *parent) 0016 : QObject(parent) 0017 { 0018 } 0019 0020 void AdministratorCustomSoundsWidgetTest::shouldHaveDefaultValues() 0021 { 0022 AdministratorCustomSoundsWidget w(nullptr); 0023 auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout")); 0024 QVERIFY(mainLayout); 0025 0026 auto mModel = w.findChild<AdminCustomSoundModel *>(QStringLiteral("mAdminCustomSoundModel")); 0027 QVERIFY(mModel); 0028 0029 auto mProxyModelModel = w.findChild<SearchTreeBaseFilterProxyModel *>(QStringLiteral("mCustomSoundProxyModel")); 0030 QVERIFY(mProxyModelModel); 0031 } 0032 0033 #include "moc_administratorcustomsoundswidgettest.cpp"