┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/draganddrophelpertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/draganddrophelpertest.cpp')
-rw-r--r--src/tests/draganddrophelpertest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/draganddrophelpertest.cpp b/src/tests/draganddrophelpertest.cpp
index 9379347f0..a82e75c7b 100644
--- a/src/tests/draganddrophelpertest.cpp
+++ b/src/tests/draganddrophelpertest.cpp
@@ -4,6 +4,7 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
+#include <QStandardPaths>
#include <QTest>
#include <views/draganddrophelper.h>
@@ -12,10 +13,16 @@ class DragAndDropHelperTest : public QObject
Q_OBJECT
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");