File indexing completed on 2024-12-01 04:35:25
0001 /* 0002 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 0011 class MessagesModelTest : public QObject 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit MessagesModelTest(QObject *parent = nullptr); 0016 ~MessagesModelTest() override = default; 0017 0018 private Q_SLOTS: 0019 void initTestCase(); 0020 void shouldHaveDefaultValue(); 0021 void shouldAddMessage(); 0022 void shouldRemoveMessage(); 0023 void shouldRemoveNotExistingMessage(); 0024 void shouldDetectDateChange(); 0025 void shouldAddMessages(); 0026 void shouldUpdateFirstMessage(); 0027 void shouldAllowEditing(); 0028 void shouldFindPrevNextMessage(); 0029 };