Commit 16630a87 authored by Laurent Montel's avatar Laurent Montel 😁

Add more autotest

parent cd9051df
......@@ -9,3 +9,4 @@ macro(add_kmail_externalcomposer_unittest _source _additional)
endmacro ()
add_kmail_externalcomposer_unittest(externalcomposerconfigurewidgettest.cpp "../externalcomposerconfigurewidget.cpp")
add_kmail_externalcomposer_unittest(externalcomposerconfiguredialogtest.cpp "../externalcomposerconfiguredialog.cpp;../externalcomposerconfigurewidget.cpp")
/*
Copyright (C) 2017 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "externalcomposerconfiguredialogtest.h"
#include <QTest>
ExternalComposerConfigureDialogTest::ExternalComposerConfigureDialogTest(QObject *parent)
: QObject(parent)
{
}
QTEST_MAIN(ExternalComposerConfigureDialogTest)
/*
Copyright (C) 2017 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef EXTERNALCOMPOSERCONFIGUREDIALOGTEST_H
#define EXTERNALCOMPOSERCONFIGUREDIALOGTEST_H
#include <QObject>
class ExternalComposerConfigureDialogTest : public QObject
{
Q_OBJECT
public:
explicit ExternalComposerConfigureDialogTest(QObject *parent = nullptr);
~ExternalComposerConfigureDialogTest() = default;
};
#endif // EXTERNALCOMPOSERCONFIGUREDIALOGTEST_H
......@@ -36,6 +36,7 @@ ExternalComposerConfigureDialog::~ExternalComposerConfigureDialog()
QWidget *ExternalComposerConfigureDialog::createLayout()
{
mConfigureWidget = new ExternalComposerConfigureWidget(this);
mConfigureWidget->setObjectName(QStringLiteral("configurewidget"));
return mConfigureWidget;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment