]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/dolphinquerytest.cpp
Enable test mode in all test
[dolphin.git] / src / tests / dolphinquerytest.cpp
index dfee3dbd5b0fde4ce27f46f04b9713c50074af75..d0a590233495165289812530fed6b94d81f39f20 100644 (file)
@@ -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()
  */