]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/draganddrophelpertest.cpp
Merge branch 'release/21.08'
[dolphin.git] / src / tests / draganddrophelpertest.cpp
index 584b7098b575ac86fa74d88a5073b4e125c2f095..a82e75c7b814bbccc45c1ea0cce58d860420cb22 100644 (file)
@@ -4,6 +4,7 @@
  * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
+#include <QStandardPaths>
 #include <QTest>
 #include <views/draganddrophelper.h>
 
@@ -11,11 +12,17 @@ class DragAndDropHelperTest : public QObject
 {
     Q_OBJECT
 
-private slots:
+private Q_SLOTS:
+    void initTestCase();
     void testUrlListMatchesUrl_data();
     void testUrlListMatchesUrl();
 };
 
+void DragAndDropHelperTest::initTestCase()
+{
+    QStandardPaths::setTestModeEnabled(true);
+}
+
 void DragAndDropHelperTest::testUrlListMatchesUrl_data()
 {
     QTest::addColumn<QList<QUrl>>("urlList");