File indexing completed on 2024-10-27 04:50:48

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 SendLaterConfigTest : public QObject
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit SendLaterConfigTest(QObject *parent = nullptr);
0018     ~SendLaterConfigTest();
0019 
0020 private Q_SLOTS:
0021     void init();
0022     void cleanup();
0023     void cleanupTestCase();
0024     void shouldConfigBeEmpty();
0025     void shouldAddAnItem();
0026     void shouldNotAddInvalidItem();
0027 
0028 private:
0029     KSharedConfig::Ptr mConfig;
0030     QRegularExpression mSendlaterRegExpFilter;
0031 };