mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Expose default repositories in system config file
This commit is contained in:
parent
4a6ae454c2
commit
3ac11b932c
10 changed files with 68 additions and 63 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
namespace Composer\Test\Package\Loader;
|
||||
|
||||
use Composer\Config;
|
||||
use Composer\Package\Loader\RootPackageLoader;
|
||||
use Composer\Test\Mock\ProcessExecutorMock;
|
||||
use Composer\Repository\RepositoryManager;
|
||||
|
@ -41,7 +42,7 @@ class RootPackageLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
return 0;
|
||||
});
|
||||
|
||||
$loader = new RootPackageLoader($manager, null, $processExecutor);
|
||||
$loader = new RootPackageLoader($manager, new Config, null, $processExecutor);
|
||||
$package = $loader->load(array());
|
||||
|
||||
$this->assertEquals("dev-$commitHash", $package->getVersion());
|
||||
|
@ -53,7 +54,8 @@ class RootPackageLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
new RepositoryManager(
|
||||
$this->getMock('Composer\\IO\\IOInterface'),
|
||||
$this->getMock('Composer\\Config')
|
||||
)
|
||||
),
|
||||
new Config()
|
||||
);
|
||||
|
||||
$repos = array(array('packagist' => false));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue