┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/kfileitemmodeltest.cpp
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2021-03-13 17:18:53 +0100
committerElvis Angelaccio <[email protected]>2021-03-13 17:18:53 +0100
commitffb80cb00d8fd886051f970b5155a55b1d066fcd (patch)
treee684d3bc61dcd0951d65520f0d79f140d31a0075 /src/tests/kfileitemmodeltest.cpp
parentc1cd4fdc913857ca0c09858bc184a91dd3842235 (diff)
Enable test mode in all test
Diffstat (limited to 'src/tests/kfileitemmodeltest.cpp')
-rw-r--r--src/tests/kfileitemmodeltest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/kfileitemmodeltest.cpp b/src/tests/kfileitemmodeltest.cpp
index bf3ce8aed..558a00ab5 100644
--- a/src/tests/kfileitemmodeltest.cpp
+++ b/src/tests/kfileitemmodeltest.cpp
@@ -8,6 +8,7 @@
#include <QRandomGenerator>
#include <QTest>
#include <QSignalSpy>
+#include <QStandardPaths>
#include <QTimer>
#include <QMimeData>
@@ -47,6 +48,7 @@ class KFileItemModelTest : public QObject
private Q_SLOTS:
void init();
+ void initTestCase();
void cleanup();
void testDefaultRoles();
@@ -93,6 +95,11 @@ private:
TestDir* m_testDir;
};
+void KFileItemModelTest::initTestCase()
+{
+ QStandardPaths::setTestModeEnabled(true);
+}
+
void KFileItemModelTest::init()
{
// The item-model tests result in a huge number of debugging