File indexing completed on 2024-05-12 16:25:27

0001 /*
0002    SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "notificationpreferencestest.h"
0008 #include "notifications/notificationpreferences.h"
0009 #include <QTest>
0010 QTEST_GUILESS_MAIN(NotificationPreferencesTest)
0011 
0012 NotificationPreferencesTest::NotificationPreferencesTest(QObject *parent)
0013     : QObject(parent)
0014 {
0015 }
0016 
0017 void NotificationPreferencesTest::shouldHaveDefaultValues()
0018 {
0019     NotificationPreferences w;
0020     QVERIFY(w.emailNotificationModel());
0021     QVERIFY(w.mobileNotificationModel());
0022     QVERIFY(w.desktopNotificationModel());
0023     QVERIFY(w.desktopDurationNotificationModel());
0024     QVERIFY(w.desktopSoundNotificationModel());
0025 }
0026 
0027 #include "moc_notificationpreferencestest.cpp"