Skip to content

Commit

Permalink
Merge branch '0.1.1' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
pdohogne-magento committed Feb 13, 2020
2 parents ae43e75 + 06087ac commit d720d4c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"AFL-3.0"
],
"require": {
"composer-plugin-api": "^1.0",
"composer/composer": "<=1.8.0"
"composer/composer": "<=1.9.3",
"composer-plugin-api": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "~6.5.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ protected function configure()
);

$mageHelp = '
<comment>Magento Root Updates:</comment>
With <info>' . PluginDefinition::PACKAGE_NAME . "</info> installed, <info>$origName</info> will also check for and
execute any changes to the root composer.json file that exist between the Magento
Expand Down
6 changes: 3 additions & 3 deletions src/Magento/ComposerRootUpdatePlugin/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "magento/composer-root-update-plugin",
"type": "composer-plugin",
"description": "Plugin to look ahead for Magento project root changes when running composer update for new Magento versions",
"version": "0.1.0",
"version": "0.1.1",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
"composer-plugin-api": "^1.0",
"composer/composer": "<=1.8.0"
"composer/composer": "<=1.9.3",
"composer-plugin-api": "^1.0"
},
"suggest": {
"magento/framework": "Enables the Magento Composer Root Update Plugin's functionality for the Web Setup Wizard"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,18 @@ public function setUp()
$this->console = new Console($this->io);
$this->retriever = $this->createPartialMock(
RootPackageRetriever::class,
['getOriginalRootPackage', 'getTargetRootPackage', 'getUserRootPackage']
[
'getOriginalRootPackage',
'getOriginalLabel',
'getTargetRootPackage',
'getTargetLabel',
'getUserRootPackage'
]
);
$this->retriever->method('getOriginalRootPackage')->willReturn(null);
$this->retriever->method('getOriginalLabel')->willReturn('Magento Open Source 1.0.0');
$this->retriever->method('getTargetRootPackage')->willReturn(null);
$this->retriever->method('getTargetLabel')->willReturn('Magento Open Source 2.0.0');
$this->retriever->method('getUserRootPackage')->willReturn(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -310,17 +310,21 @@ public function setUp()
'getOriginalRootPackage',
'getOriginalEdition',
'getOriginalVersion',
'getOriginalLabel',
'getTargetRootPackage',
'getTargetEdition',
'getTargetVersion',
'getTargetLabel',
'getUserRootPackage'
]);
$retriever->method('getOriginalRootPackage')->willReturn($baseRoot);
$retriever->method('getOriginalEdition')->willReturn('community');
$retriever->method('getOriginalVersion')->willReturn('1.0.0.0');
$retriever->method('getOriginalLabel')->willReturn('Magento Open Source 1.0.0');
$retriever->method('getTargetRootPackage')->willReturn($targetRoot);
$retriever->method('getTargetEdition')->willReturn('community');
$retriever->method('getTargetVersion')->willReturn('2.0.0.0');
$retriever->method('getTargetLabel')->willReturn('Magento Open Source 2.0.0');
$retriever->method('getUserRootPackage')->willReturn($installRoot);

$this->retriever = $retriever;
Expand Down

0 comments on commit d720d4c

Please sign in to comment.