File indexing completed on 2024-12-01 04:35:26

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 RocketChatAccountSettingsTest : public QObject
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit RocketChatAccountSettingsTest(QObject *parent = nullptr);
0016     ~RocketChatAccountSettingsTest() override = default;
0017 private Q_SLOTS:
0018     void shouldHaveDefaultValues();
0019     void shouldEmitSignalWhenSetServerURLChanged();
0020     void shouldEmitSignalWhenUserNameChanged();
0021     void shouldEmitSignalWhenUserIDChanged();
0022     void shouldEmitSignalWhenLoginStatusChanged();
0023     void shouldSetAccountName();
0024     void shouldSetUserID();
0025     void shouldsetAuthToken();
0026     void shouldSetServerUrl();
0027     void shouldSetUserName();
0028     void shouldSetPassword();
0029     void shouldLogout();
0030     void shouldNotEmitSignalWhenNewUsernameIsSameAsOld();
0031     void shouldNotEmitSignalWhenNewServerUrlIsSameAsOld();
0032 };