1
0
Fork 0

Fix composer repo test to match what composer repos send

pull/3994/head
Nils Adermann 2015-06-08 18:57:56 +02:00
parent 8b28d4bc82
commit e25b86c129
1 changed files with 19 additions and 17 deletions

View File

@ -124,23 +124,25 @@ class ComposerRepositoryTest extends TestCase
->method('fetchFile') ->method('fetchFile')
->will($this->returnValue(array( ->will($this->returnValue(array(
'packages' => array( 'packages' => array(
array(array( 'a' => array(
'uid' => 1, 'dev-master' => array(
'name' => 'a', 'uid' => 1,
'version' => 'dev-master', 'name' => 'a',
'extra' => array('branch-alias' => array('dev-master' => '1.0.x-dev')), 'version' => 'dev-master',
)), 'extra' => array('branch-alias' => array('dev-master' => '1.0.x-dev')),
array(array( ),
'uid' => 2, 'dev-develop' => array(
'name' => 'a', 'uid' => 2,
'version' => 'dev-develop', 'name' => 'a',
'extra' => array('branch-alias' => array('dev-develop' => '1.1.x-dev')), 'version' => 'dev-develop',
)), 'extra' => array('branch-alias' => array('dev-develop' => '1.1.x-dev')),
array(array( ),
'uid' => 3, '0.6' => array(
'name' => 'a', 'uid' => 3,
'version' => '0.6', 'name' => 'a',
)), 'version' => '0.6',
),
),
) )
))); )));