diff options
| author | Elvis Angelaccio <[email protected]> | 2021-03-13 17:18:53 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2021-03-13 17:18:53 +0100 |
| commit | ffb80cb00d8fd886051f970b5155a55b1d066fcd (patch) | |
| tree | e684d3bc61dcd0951d65520f0d79f140d31a0075 /src/tests/dolphinquerytest.cpp | |
| parent | c1cd4fdc913857ca0c09858bc184a91dd3842235 (diff) | |
Enable test mode in all test
Diffstat (limited to 'src/tests/dolphinquerytest.cpp')
| -rw-r--r-- | src/tests/dolphinquerytest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 <QJsonDocument> #include <QJsonObject> #include <QStringList> +#include <QStandardPaths> #include <QUrl> #include <QUrlQuery> @@ -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() */ |
