File indexing completed on 2024-12-22 04:46:00

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 "myaccountprofileconfigureavatarwidgettest.h"
0008 #include "myaccount/myaccountprofileconfigureavatarwidget.h"
0009 #include <QHBoxLayout>
0010 #include <QTest>
0011 QTEST_MAIN(MyAccountProfileConfigureAvatarWidgetTest)
0012 MyAccountProfileConfigureAvatarWidgetTest::MyAccountProfileConfigureAvatarWidgetTest(QObject *parent)
0013     : QObject(parent)
0014 {
0015 }
0016 
0017 void MyAccountProfileConfigureAvatarWidgetTest::shouldHaveDefaultValues()
0018 {
0019     MyAccountProfileConfigureAvatarWidget w(nullptr);
0020 
0021     auto mainLayout = w.findChild<QHBoxLayout *>(QStringLiteral("mainLayout"));
0022     QVERIFY(mainLayout);
0023 
0024     auto mAvatarImage = w.findChild<AvatarImage *>(QStringLiteral("mAvatarImage"));
0025     QVERIFY(mAvatarImage);
0026 }
0027 
0028 #include "moc_myaccountprofileconfigureavatarwidgettest.cpp"