File indexing completed on 2025-01-26 04:38:17

0001 /*
0002    SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "googlepluginauthenticationtest.h"
0008 #include "../googlepluginauthentication.h"
0009 #include <QTest>
0010 
0011 QTEST_MAIN(GooglePluginAuthenticationTest)
0012 
0013 GooglePluginAuthenticationTest::GooglePluginAuthenticationTest(QObject *parent)
0014     : QObject(parent)
0015 {
0016 }
0017 
0018 void GooglePluginAuthenticationTest::shouldHaveDefaultValue()
0019 {
0020     GooglePluginAuthentication w(nullptr, {});
0021     QVERIFY(!w.name().isEmpty());
0022     QCOMPARE(w.type(), AuthenticationManager::OauthType::Google);
0023 }
0024 
0025 #include "moc_googlepluginauthenticationtest.cpp"