diff options
| author | Elvis Angelaccio <[email protected]> | 2018-06-03 11:24:20 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2018-06-03 11:24:20 +0200 |
| commit | 2e6798088b1a07422a670f419475f8109b043fdc (patch) | |
| tree | cd8ed275e15943c4840b2508d3efed908c78df47 /src | |
| parent | 97801e2cdb22411de58d2c67f8b82b466f8dff82 (diff) | |
Enable test mode in dolphinmainwindowtest
We don't want to use the user configuration files when creating a test
instance of DolphinMainWindow.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/dolphinmainwindowtest.cpp | 7 |
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()); |
