GitDriver: fix test for remote identifier on windows (#10727)
parent
6c3958ec86
commit
a5e35f911b
|
@ -77,6 +77,10 @@ GIT;
|
|||
$process = $this->getProcessExecutorMock();
|
||||
$io = $this->getMockBuilder(IOInterface::class)->getMock();
|
||||
|
||||
$io
|
||||
->expects($this->never())
|
||||
->method('writeError');
|
||||
|
||||
$driver = new GitDriver(['url' => 'https://example.org/acme.git'], $io, $this->config, $this->getHttpDownloaderMock(), $process);
|
||||
$this->setRepoDir($driver, $this->home);
|
||||
|
||||
|
@ -96,7 +100,7 @@ GIT;
|
|||
'cmd' => 'git remote -v',
|
||||
'stdout' => '',
|
||||
], [
|
||||
'cmd' => "git remote set-url origin -- 'https://example.org/acme.git' && git remote show origin && git remote set-url origin -- 'https://example.org/acme.git'",
|
||||
'cmd' => Platform::isWindows() ? "git remote set-url origin -- https://example.org/acme.git && git remote show origin && git remote set-url origin -- https://example.org/acme.git" : "git remote set-url origin -- 'https://example.org/acme.git' && git remote show origin && git remote set-url origin -- 'https://example.org/acme.git'",
|
||||
'stdout' => $stdout,
|
||||
]]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue