Skip to content

Commit

Permalink
Try fixing test for KF6
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1701c committed Oct 12, 2024
1 parent 9616c44 commit 23964a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autotests/jetbrainsrunnerintegrationtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <QDir>
#include <QStandardPaths>
#include <QTest>
#include <kservice_version.h>

using namespace KRunner;

Expand All @@ -15,6 +16,10 @@ private Q_SLOTS:
{
using QSP = QStandardPaths;
QSP::setTestModeEnabled(true);
#if KSERVICE_VERSION_MAJOR == 6
KSycoca::self()->setupTestMenu();
#endif

const QString dataLocation = QSP::writableLocation(QStandardPaths::ApplicationsLocation);
QDir(dataLocation).removeRecursively();
const QString configLocation = QSP::writableLocation(QStandardPaths::GenericConfigLocation) + "/JetBrains/PhpStorm2022.2/options/";
Expand Down

0 comments on commit 23964a6

Please sign in to comment.