]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/dolphinsearchboxtest.cpp
Merge branch 'release/21.08'
[dolphin.git] / src / tests / dolphinsearchboxtest.cpp
index 862a398a5b62db609e02532d1f85dc41c1c3c4e9..56420e56e9f1fafe1b18954b3287360060623a3f 100644 (file)
@@ -1,31 +1,20 @@
-/***************************************************************************
- *   Copyright (C) 2011 by Peter Penz <peter.penz19@gmail.com>             *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
- ***************************************************************************/
+/*
+ * SPDX-FileCopyrightText: 2011 Peter Penz <peter.penz19@gmail.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
 
 #include "search/dolphinsearchbox.h"
 
+#include <QStandardPaths>
 #include <QTest>
 
 class DolphinSearchBoxTest : public QObject
 {
     Q_OBJECT
 
-private slots:
+private Q_SLOTS:
+    void initTestCase();
     void init();
     void cleanup();
 
@@ -35,6 +24,11 @@ private:
     DolphinSearchBox* m_searchBox;
 };
 
+void DolphinSearchBoxTest::initTestCase()
+{
+    QStandardPaths::setTestModeEnabled(true);
+}
+
 void DolphinSearchBoxTest::init()
 {
     m_searchBox = new DolphinSearchBox();