1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Fixed update alias packages in dry-run mode

This commit is contained in:
Martin Hasoň 2013-03-21 12:08:58 +01:00
parent 753a8345cb
commit 02f92e678f
5 changed files with 139 additions and 5 deletions

View file

@ -200,7 +200,9 @@ class InstallerTest extends TestCase
$application = new Application;
$application->get('install')->setCode(function ($input, $output) use ($installer) {
$installer->setDevMode($input->getOption('dev'));
$installer
->setDevMode($input->getOption('dev'))
->setDryRun($input->getOption('dry-run'));
return $installer->run() ? 0 : 1;
});
@ -209,6 +211,7 @@ class InstallerTest extends TestCase
$installer
->setDevMode($input->getOption('dev'))
->setUpdate(true)
->setDryRun($input->getOption('dry-run'))
->setUpdateWhitelist($input->getArgument('packages'));
return $installer->run() ? 0 : 1;