Commit 5fa6529b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more autotest

parent f7949d96
Pipeline #28635 failed with stage
in 64 minutes and 58 seconds
......@@ -3,7 +3,7 @@ macro(add_messageviewer_expireaccounttrash_unittest _source)
ecm_add_test(${_source}
TEST_NAME ${_name}
NAME_PREFIX "messageviewer-"
LINK_LIBRARIES KF5::MessageViewer Qt5::Test
LINK_LIBRARIES KF5::MessageViewer Qt5::Test expireaccounttrashfolderconfig
)
endmacro ()
......
......@@ -18,6 +18,7 @@
*/
#include "expireaccounttrashfolderconfigwidgettest.h"
#include "../expireaccounttrashfolderconfigwidget.h"
#include <QTest>
QTEST_MAIN(ExpireAccountTrashFolderConfigWidgetTest)
ExpireAccountTrashFolderConfigWidgetTest::ExpireAccountTrashFolderConfigWidgetTest(QObject *parent)
......@@ -25,3 +26,8 @@ ExpireAccountTrashFolderConfigWidgetTest::ExpireAccountTrashFolderConfigWidgetTe
{
}
void ExpireAccountTrashFolderConfigWidgetTest::shouldHaveDefaultValues()
{
ExpireAccountTrashFolderConfigWidget w;
}
......@@ -28,6 +28,8 @@ class ExpireAccountTrashFolderConfigWidgetTest : public QObject
public:
explicit ExpireAccountTrashFolderConfigWidgetTest(QObject *parent = nullptr);
~ExpireAccountTrashFolderConfigWidgetTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValues();
};
#endif // EXPIREACCOUNTTRASHFOLDERCONFIGWIDGETTEST_H
......@@ -21,12 +21,12 @@
#define EXPIREACCOUNTTRASHFOLDERCONFIGWIDGET_H
#include <QWidget>
#include "expireaccounttrashfolderconfig_private_export.h"
namespace MailCommon
{
class CollectionExpiryWidget;
}
class ExpireAccountTrashFolderConfigWidget : public QWidget
class LIBEXPIREACCOUNTTRASHFOLDERCONFIG_TESTS_EXPORT ExpireAccountTrashFolderConfigWidget : public QWidget
{
Q_OBJECT
public:
......
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