X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/f65b0899c3666561cafac14f67ab0bb8a5bfa00a..38c34eeca315c7be58e65d4d3fb72aaf7b866719:/src/tests/viewpropertiestest.cpp diff --git a/src/tests/viewpropertiestest.cpp b/src/tests/viewpropertiestest.cpp index fb3023db5..7b30203d2 100644 --- a/src/tests/viewpropertiestest.cpp +++ b/src/tests/viewpropertiestest.cpp @@ -4,8 +4,8 @@ * SPDX-License-Identifier: GPL-2.0-or-later */ -#include "dolphin_generalsettings.h" #include "views/viewproperties.h" +#include "dolphin_generalsettings.h" #include "testdir.h" #include @@ -15,6 +15,7 @@ class ViewPropertiesTest : public QObject Q_OBJECT private Q_SLOTS: + void initTestCase(); void init(); void cleanup(); @@ -23,9 +24,14 @@ private Q_SLOTS: private: bool m_globalViewProps; - TestDir* m_testDir; + TestDir *m_testDir; }; +void ViewPropertiesTest::initTestCase() +{ + QStandardPaths::setTestModeEnabled(true); +} + void ViewPropertiesTest::init() { m_globalViewProps = GeneralSettings::self()->globalViewProps();