File indexing completed on 2024-05-12 16:25:33

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "servicepasswordtest.h"
0008 #include "servicepassword.h"
0009 #include <QTest>
0010 QTEST_GUILESS_MAIN(ServicePasswordTest)
0011 ServicePasswordTest::ServicePasswordTest(QObject *parent)
0012     : QObject(parent)
0013 {
0014 }
0015 
0016 void ServicePasswordTest::shouldHaveDefaultValues()
0017 {
0018     ServicePassword p;
0019     QVERIFY(!p.totp());
0020     QVERIFY(!p.email2faEnabled());
0021     QVERIFY(p.password().isEmpty());
0022 }
0023 
0024 #include "moc_servicepasswordtest.cpp"