mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Revert previous change, use GIT_ASKPASS env var instead
This commit is contained in:
parent
4ee1ff46a8
commit
656feda837
4 changed files with 13 additions and 3 deletions
|
@ -48,6 +48,11 @@ class GitHubDriverTest extends \PHPUnit_Framework_TestCase
|
|||
->setConstructorArgs(array($io))
|
||||
->getMock();
|
||||
|
||||
$process = $this->getMock('Composer\Util\ProcessExecutor');
|
||||
$process->expects($this->any())
|
||||
->method('execute')
|
||||
->will($this->returnValue(1));
|
||||
|
||||
$remoteFilesystem->expects($this->at(0))
|
||||
->method('getContents')
|
||||
->with($this->equalTo('github.com'), $this->equalTo($repoApiUrl), $this->equalTo(false))
|
||||
|
@ -72,7 +77,7 @@ class GitHubDriverTest extends \PHPUnit_Framework_TestCase
|
|||
->with($this->equalTo('github.com'), $this->equalTo($repoApiUrl), $this->equalTo(false))
|
||||
->will($this->returnValue('{"master_branch": "test_master"}'));
|
||||
|
||||
$gitHubDriver = new GitHubDriver($repoUrl, $io, $this->config, null, $remoteFilesystem);
|
||||
$gitHubDriver = new GitHubDriver($repoUrl, $io, $this->config, $process, $remoteFilesystem);
|
||||
$gitHubDriver->initialize();
|
||||
$this->setAttribute($gitHubDriver, 'tags', array($identifier => $sha));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue