diff --git a/plugins/editorconfig/test/org/editorconfig/language/EditorConfigCommenterTest.kt b/plugins/editorconfig/test/org/editorconfig/language/EditorConfigCommenterTest.kt index b18c6c3cd9f3..b8dd50d1fca7 100644 --- a/plugins/editorconfig/test/org/editorconfig/language/EditorConfigCommenterTest.kt +++ b/plugins/editorconfig/test/org/editorconfig/language/EditorConfigCommenterTest.kt @@ -2,11 +2,12 @@ package org.editorconfig.language import com.intellij.codeInsight.generation.actions.CommentByLineCommentAction +import com.intellij.openapi.application.ex.PathManagerEx import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase class EditorConfigCommenterTest : LightPlatformCodeInsightFixtureTestCase() { - override fun getBasePath() = - "/plugins/editorconfig/testSrc/org/editorconfig/language/commenter/" + override fun getTestDataPath() = + "${PathManagerEx.getCommunityHomePath()}/plugins/editorconfig/testSrc/org/editorconfig/language/commenter/" fun testComment() = doTest() fun testUncomment() = doTest() diff --git a/plugins/editorconfig/test/org/editorconfig/language/codeinsight/EditorConfigRefactoringTest.kt b/plugins/editorconfig/test/org/editorconfig/language/codeinsight/EditorConfigRefactoringTest.kt index 4bd9e82be06f..a84ee13eaaab 100644 --- a/plugins/editorconfig/test/org/editorconfig/language/codeinsight/EditorConfigRefactoringTest.kt +++ b/plugins/editorconfig/test/org/editorconfig/language/codeinsight/EditorConfigRefactoringTest.kt @@ -1,13 +1,14 @@ // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.editorconfig.language.codeinsight +import com.intellij.openapi.application.ex.PathManagerEx import com.intellij.testFramework.fixtures.CodeInsightTestUtil import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase import org.editorconfig.language.codeinsight.refactoring.EditorConfigRenameHandler class EditorConfigRefactoringTest : LightPlatformCodeInsightFixtureTestCase() { - override fun getBasePath() = - "/plugins/editorconfig/testSrc/org/editorconfig/language/codeinsight/refactoring/" + override fun getTestDataPath() = + "${PathManagerEx.getCommunityHomePath()}/plugins/editorconfig/testSrc/org/editorconfig/language/codeinsight/refactoring/" fun testRenameDeclarations() = doInplaceTest("my_rule") fun testRenameReferenceAndDeclarations() = doInplaceTest("my_symbols")