File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/test/java/de/php_perfect/intellij/ddev/php/server Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11package de .php_perfect .intellij .ddev .php .server ;
22
33import com .intellij .testFramework .fixtures .BasePlatformTestCase ;
4- import com .intellij .util .PathUtil ;
54import com .jetbrains .php .config .servers .PhpServer ;
65import com .jetbrains .php .config .servers .PhpServersWorkspaceStateComponent ;
76import org .junit .Assert ;
1110import java .net .MalformedURLException ;
1211import java .net .URL ;
1312import java .util .List ;
13+ import java .util .Objects ;
1414
1515final class ServerConfigManagerImplTest extends BasePlatformTestCase {
1616
@@ -25,7 +25,7 @@ void configure() throws MalformedURLException {
2525 final ServerConfigManager serverConfigManager = ServerConfigManager .getInstance (this .getProject ());
2626
2727 final ServerConfig serverConfig = new ServerConfig (
28- "C: \\ Users \\ test \\ AppData \\ Local \\ Temp \\ my-project" ,
28+ Objects . requireNonNull ( this . getProject (). getBasePath ()) ,
2929 "/var/www/html" ,
3030 new URL ("https://test.ddev.site" )
3131 );
@@ -52,7 +52,7 @@ private void assertServerConfigMatches(ServerConfig serverConfig) {
5252
5353 var mapping = mappings .get (0 );
5454
55- Assert .assertEquals (serverConfig .getLocalPath (), PathUtil . toSystemDependentName ( mapping .getLocalRoot () ));
55+ Assert .assertEquals (serverConfig .getLocalPath (), mapping .getLocalRoot ());
5656 Assert .assertEquals (serverConfig .getRemotePath (), mapping .getRemoteRoot ());
5757 }
5858}
You can’t perform that action at this time.
0 commit comments