┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tests/dolphinmainwindowtest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/dolphinmainwindowtest.cpp b/src/tests/dolphinmainwindowtest.cpp
index 70ec8dba0..eee387116 100644
--- a/src/tests/dolphinmainwindowtest.cpp
+++ b/src/tests/dolphinmainwindowtest.cpp
@@ -25,6 +25,7 @@
#include <KActionCollection>
#include <QSignalSpy>
+#include <QStandardPaths>
#include <QTest>
class DolphinMainWindowTest : public QObject
@@ -32,6 +33,7 @@ class DolphinMainWindowTest : public QObject
Q_OBJECT
private slots:
+ void initTestCase();
void init();
void testClosingTabsWithSearchBoxVisible();
void testActiveViewAfterClosingSplitView_data();
@@ -42,6 +44,11 @@ private:
QScopedPointer<DolphinMainWindow> m_mainWindow;
};
+void DolphinMainWindowTest::initTestCase()
+{
+ QStandardPaths::setTestModeEnabled(true);
+}
+
void DolphinMainWindowTest::init()
{
m_mainWindow.reset(new DolphinMainWindow());