Commit 01c652da authored by Laurent Montel's avatar Laurent Montel 😁

Improve autotests

parent d727a0e0
......@@ -19,16 +19,12 @@
#include "automaticaddcontactsconfigurewidgettest.h"
#include "../automaticaddcontactsconfigurewidget.h"
#include "../automaticaddcontactsconfiguretab.h"
#include <QCheckBox>
#include <QTest>
#include <QVBoxLayout>
#include <QStandardPaths>
#include <QLabel>
#include <QStandardItemModel>
#include <AkonadiWidgets/CollectionComboBox>
#include <AkonadiCore/EntityTreeModel>
#include <KContacts/Addressee>
AutomaticAddContactsConfigureWidgetTest::AutomaticAddContactsConfigureWidgetTest(QObject *parent)
: QObject(parent)
......@@ -43,10 +39,13 @@ AutomaticAddContactsConfigureWidgetTest::~AutomaticAddContactsConfigureWidgetTes
void AutomaticAddContactsConfigureWidgetTest::shouldHaveDefaultValue()
{
}
AutomaticAddContactsConfigureWidget w;
void AutomaticAddContactsConfigureWidgetTest::shouldResetValue()
{
QVBoxLayout *mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
AutomaticAddContactsConfigureTab *mConfigureTab = w.findChild<AutomaticAddContactsConfigureTab *>(QStringLiteral("configuretab"));
QVERIFY(mConfigureTab);
}
QTEST_MAIN(AutomaticAddContactsConfigureWidgetTest)
......@@ -31,7 +31,6 @@ public:
~AutomaticAddContactsConfigureWidgetTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
void shouldResetValue();
};
#endif // AUTOMATICADDCONTACTSConfigureWIDGETTEST_H
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