File indexing completed on 2025-02-09 06:21:07
0001 /* 0002 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <KSharedConfig> 0010 #include <QObject> 0011 #include <QRegularExpression> 0012 0013 class FollowUpReminderConfigTest : public QObject 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit FollowUpReminderConfigTest(QObject *parent = nullptr); 0018 ~FollowUpReminderConfigTest() override; 0019 private Q_SLOTS: 0020 void init(); 0021 void cleanup(); 0022 void cleanupTestCase(); 0023 void shouldConfigBeEmpty(); 0024 void shouldAddAnItem(); 0025 void shouldNotAddAnInvalidItem(); 0026 void shouldReplaceItem(); 0027 void shouldAddSeveralItem(); 0028 void shouldRemoveItems(); 0029 void shouldNotRemoveItemWhenListIsEmpty(); 0030 void shouldNotRemoveItemWhenItemDoesntExist(); 0031 0032 private: 0033 KSharedConfig::Ptr mConfig; 0034 QRegularExpression mFollowupRegExpFilter; 0035 };