Commit 63086fa6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add autotest

parent a0de024d
Pipeline #48751 failed with stage
in 25 minutes and 37 seconds
......@@ -12,3 +12,4 @@ messagelist_unittest(itemsizetest.cpp)
messagelist_unittest(quicksearchwarningtest.cpp)
messagelist_unittest(searchlinestatustest.cpp)
messagelist_unittest(searchcollectionindexingwarningtest.cpp)
messagelist_unittest(tablockedwarningtest.cpp)
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "tablockedwarningtest.h"
#include "core/widgets/tablockedwarning.h"
#include <QTest>
QTEST_MAIN(TabLockedWarningTest)
TabLockedWarningTest::TabLockedWarningTest(QObject *parent)
: QObject(parent)
{
}
void TabLockedWarningTest::shouldHaveDefaultValues()
{
MessageList::Core::TabLockedWarning w;
//TODO
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef TABLOCKEDWARNINGTEST_H
#define TABLOCKEDWARNINGTEST_H
#include <QObject>
class TabLockedWarningTest : public QObject
{
Q_OBJECT
public:
explicit TabLockedWarningTest(QObject *parent = nullptr);
~TabLockedWarningTest() override = default;
private Q_SLOTS:
void shouldHaveDefaultValues();
};
#endif // TABLOCKEDWARNINGTEST_H
......@@ -9,10 +9,11 @@
#include <KMessageWidget>
#include "messagelist_private_export.h"
namespace MessageList {
namespace Core {
class TabLockedWarning : public KMessageWidget
class MESSAGELIST_TESTS_EXPORT TabLockedWarning : public KMessageWidget
{
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