mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Enable test mode in dolphinmainwindowtest
We don't want to use the user configuration files when creating a test instance of DolphinMainWindow.
This commit is contained in:
parent
97801e2cdb
commit
2e6798088b
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue