mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Update repo url from github and handle trailing slashes, refs composer/packagist#354 refs composer/packagist#423
This commit is contained in:
parent
ea6917c87a
commit
d5294ef91b
2 changed files with 13 additions and 5 deletions
|
@ -91,7 +91,7 @@ class GitHubDriverTest extends \PHPUnit_Framework_TestCase
|
|||
$remoteFilesystem->expects($this->at(3))
|
||||
->method('getContents')
|
||||
->with($this->equalTo('github.com'), $this->equalTo($repoApiUrl), $this->equalTo(false))
|
||||
->will($this->returnValue('{"master_branch": "test_master", "private": true}'));
|
||||
->will($this->returnValue('{"master_branch": "test_master", "private": true, "owner": {"login": "composer"}, "name": "packagist"}'));
|
||||
|
||||
$configSource = $this->getMock('Composer\Config\ConfigSourceInterface');
|
||||
$authConfigSource = $this->getMock('Composer\Config\ConfigSourceInterface');
|
||||
|
@ -138,7 +138,7 @@ class GitHubDriverTest extends \PHPUnit_Framework_TestCase
|
|||
$remoteFilesystem->expects($this->at(0))
|
||||
->method('getContents')
|
||||
->with($this->equalTo('github.com'), $this->equalTo($repoApiUrl), $this->equalTo(false))
|
||||
->will($this->returnValue('{"master_branch": "test_master"}'));
|
||||
->will($this->returnValue('{"master_branch": "test_master", "owner": {"login": "composer"}, "name": "packagist"}'));
|
||||
|
||||
$repoConfig = array(
|
||||
'url' => $repoUrl,
|
||||
|
@ -181,7 +181,7 @@ class GitHubDriverTest extends \PHPUnit_Framework_TestCase
|
|||
$remoteFilesystem->expects($this->at(0))
|
||||
->method('getContents')
|
||||
->with($this->equalTo('github.com'), $this->equalTo($repoApiUrl), $this->equalTo(false))
|
||||
->will($this->returnValue('{"master_branch": "test_master"}'));
|
||||
->will($this->returnValue('{"master_branch": "test_master", "owner": {"login": "composer"}, "name": "packagist"}'));
|
||||
|
||||
$remoteFilesystem->expects($this->at(1))
|
||||
->method('getContents')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue