File tree Expand file tree Collapse file tree
src/test/kotlin/com/vk/kphpstorm/testing/infrastructure Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,3 +104,9 @@ tasks {
104104 gradleVersion = providers.gradleProperty(" gradleVersion" ).get()
105105 }
106106}
107+
108+ sourceSets {
109+ test {
110+ resources.srcDir(" src/test/" )
111+ }
112+ }
Original file line number Diff line number Diff line change 11package com.vk.kphpstorm.testing.infrastructure
22
3+ import com.intellij.openapi.vfs.newvfs.impl.VfsRootAccess
34import com.intellij.testFramework.fixtures.BasePlatformTestCase
45import com.jetbrains.php.config.PhpLanguageLevel
56import com.jetbrains.php.config.PhpProjectConfigurationFacade
67import com.jetbrains.php.lang.inspections.PhpInspection
78import com.vk.kphpstorm.configuration.KphpStormConfiguration
89import com.vk.kphpstorm.configuration.setupKphpStormPluginForProject
910import java.io.File
11+ import java.nio.file.Paths
1012
1113
1214abstract class InspectionTestBase (
@@ -19,6 +21,7 @@ abstract class InspectionTestBase(
1921
2022 override fun setUp () {
2123 super .setUp()
24+ VfsRootAccess .allowRootAccess(testRootDisposable, Paths .get(testDataPath).toAbsolutePath().toString())
2225
2326 if (inspectionToEnable != null ) {
2427 myFixture.enableInspections(inspectionToEnable)
You can’t perform that action at this time.
0 commit comments