From ffb80cb00d8fd886051f970b5155a55b1d066fcd Mon Sep 17 00:00:00 2001 From: Elvis Angelaccio Date: Sat, 13 Mar 2021 17:18:53 +0100 Subject: Enable test mode in all test --- src/tests/dolphinquerytest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/tests/dolphinquerytest.cpp') diff --git a/src/tests/dolphinquerytest.cpp b/src/tests/dolphinquerytest.cpp index dfee3dbd5..d0a590233 100644 --- a/src/tests/dolphinquerytest.cpp +++ b/src/tests/dolphinquerytest.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -19,6 +20,7 @@ class DolphinSearchBoxTest : public QObject Q_OBJECT private Q_SLOTS: + void initTestCase(); void testBalooSearchParsing_data(); void testBalooSearchParsing(); }; @@ -45,6 +47,11 @@ QUrl balooQueryUrl(const QString& searchString) return searchUrl; } +void DolphinSearchBoxTest::initTestCase() +{ + QStandardPaths::setTestModeEnabled(true); +} + /** * Defines the parameters for the test cases in testBalooSearchParsing() */ -- cgit v1.3