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:
parent
753a8345cb
commit
02f92e678f
5 changed files with 139 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue