Commit 9974fb8d authored by Laurent Montel's avatar Laurent Montel 😁

Fix tests

parent 6f08de7a
......@@ -21,7 +21,10 @@
*/
#include "addresseslocationwidgettest.h"
#include "../addresseslocationwidget.h"
#include <QTest>
#include <editor/addresseditor/addresseslocationviewer.h>
#include <editor/addresseditor/addresslocationwidget.h>
AddressesLocationWidgetTest::AddressesLocationWidgetTest(QObject *parent)
: QObject(parent)
......@@ -34,4 +37,14 @@ AddressesLocationWidgetTest::~AddressesLocationWidgetTest()
}
void AddressesLocationWidgetTest::shouldHaveDefaultValue()
{
AddressesLocationWidget w;
AddressLocationWidget *addressLocationWidget = w.findChild<AddressLocationWidget *>(QStringLiteral("addresslocationwidget"));
QVERIFY(addressLocationWidget);
AddressesLocationViewer *addressesLocationViewer = w.findChild<AddressesLocationViewer *>(QStringLiteral("addresseslocationviewer"));
QVERIFY(addressesLocationViewer);
}
QTEST_MAIN(AddressesLocationWidgetTest)
......@@ -31,6 +31,9 @@ class AddressesLocationWidgetTest : public QObject
public:
explicit AddressesLocationWidgetTest(QObject *parent = Q_NULLPTR);
~AddressesLocationWidgetTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // ADDRESSESLOCATIONWIDGETTEST_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