Skip to content

Commit c7af2aa

Browse files
committed
fix tests on windows
1 parent 69105e6 commit c7af2aa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/test/kotlin/com/vk/kphpstorm/testing/infrastructure/KphpStormTestBase.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package com.vk.kphpstorm.testing.infrastructure
22

3+
import com.intellij.openapi.vfs.newvfs.impl.VfsRootAccess
34
import com.intellij.testFramework.fixtures.BasePlatformTestCase
45
import com.jetbrains.php.config.PhpLanguageLevel
56
import com.jetbrains.php.config.PhpProjectConfigurationFacade
7+
import java.nio.file.Paths
68

79
abstract class KphpStormTestBase() : BasePlatformTestCase() {
810

@@ -13,6 +15,8 @@ abstract class KphpStormTestBase() : BasePlatformTestCase() {
1315
override fun setUp() {
1416
super.setUp()
1517
setupLanguageLevel()
18+
val testDataAbsPath = Paths.get(testDataPath).toAbsolutePath().toString()
19+
VfsRootAccess.allowRootAccess(testRootDisposable, testDataAbsPath)
1620
}
1721

1822
private fun setupLanguageLevel() {

0 commit comments

Comments
 (0)