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