File tree Expand file tree Collapse file tree 5 files changed +19
-6
lines changed 
src/Magento/ComposerRootUpdatePlugin 
tests/Unit/Magento/ComposerRootUpdatePlugin/Updater Expand file tree Collapse file tree 5 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 66 " AFL-3.0" 
77 ],
88 "require" : {
9-  "composer-plugin-api " : " ^1.0 " 
10-  "composer/composer " : " <=1.8 .0" 
9+  "composer/composer " : " <=1.9.3 " 
10+  "composer-plugin-api " : " ^1 .0" 
1111 },
1212 "require-dev" : {
1313 "phpunit/phpunit" : " ~6.5.0" 
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ protected function configure()
117117 );
118118
119119 $ mageHelp' 
120+ 
120121<comment>Magento Root Updates:</comment> 
121122 With <info> 'PACKAGE_NAME  . "</info> installed, <info> $ origName</info> will also check for and  
122123 execute any changes to the root composer.json file that exist between the Magento 
Original file line number Diff line number Diff line change 22 "name" : " magento/composer-root-update-plugin" 
33 "type" : " composer-plugin" 
44 "description" : " Plugin to look ahead for Magento project root changes when running composer update for new Magento versions" 
5-  "version" : " 0.1.0 " 
5+  "version" : " 0.1.1 " 
66 "license" : [
77 " OSL-3.0" 
88 " AFL-3.0" 
99 ],
1010 "require" : {
11-  "composer-plugin-api " : " ^1.0 " 
12-  "composer/composer " : " <=1.8 .0" 
11+  "composer/composer " : " <=1.9.3 " 
12+  "composer-plugin-api " : " ^1 .0" 
1313 },
1414 "suggest" : {
1515 "magento/framework" : " Enables the Magento Composer Root Update Plugin's functionality for the Web Setup Wizard" 
Original file line number Diff line number Diff line change @@ -469,10 +469,18 @@ public function setUp()
469469 $ this console  = new  Console ($ this io );
470470 $ this retriever  = $ this createPartialMock (
471471 RootPackageRetriever::class,
472-  ['getOriginalRootPackage ' , 'getTargetRootPackage ' , 'getUserRootPackage ' ]
472+  [
473+  'getOriginalRootPackage ' ,
474+  'getOriginalLabel ' ,
475+  'getTargetRootPackage ' ,
476+  'getTargetLabel ' ,
477+  'getUserRootPackage ' 
478+  ]
473479 );
474480 $ this retriever ->method ('getOriginalRootPackage ' )->willReturn (null );
481+  $ this retriever ->method ('getOriginalLabel ' )->willReturn ('Magento Open Source 1.0.0 ' );
475482 $ this retriever ->method ('getTargetRootPackage ' )->willReturn (null );
483+  $ this retriever ->method ('getTargetLabel ' )->willReturn ('Magento Open Source 2.0.0 ' );
476484 $ this retriever ->method ('getUserRootPackage ' )->willReturn (null );
477485 }
478486}
Original file line number Diff line number Diff line change @@ -310,17 +310,21 @@ public function setUp()
310310 'getOriginalRootPackage ' ,
311311 'getOriginalEdition ' ,
312312 'getOriginalVersion ' ,
313+  'getOriginalLabel ' ,
313314 'getTargetRootPackage ' ,
314315 'getTargetEdition ' ,
315316 'getTargetVersion ' ,
317+  'getTargetLabel ' ,
316318 'getUserRootPackage ' 
317319 ]);
318320 $ retrievermethod ('getOriginalRootPackage ' )->willReturn ($ baseRoot
319321 $ retrievermethod ('getOriginalEdition ' )->willReturn ('community ' );
320322 $ retrievermethod ('getOriginalVersion ' )->willReturn ('1.0.0.0 ' );
323+  $ retrievermethod ('getOriginalLabel ' )->willReturn ('Magento Open Source 1.0.0 ' );
321324 $ retrievermethod ('getTargetRootPackage ' )->willReturn ($ targetRoot
322325 $ retrievermethod ('getTargetEdition ' )->willReturn ('community ' );
323326 $ retrievermethod ('getTargetVersion ' )->willReturn ('2.0.0.0 ' );
327+  $ retrievermethod ('getTargetLabel ' )->willReturn ('Magento Open Source 2.0.0 ' );
324328 $ retrievermethod ('getUserRootPackage ' )->willReturn ($ installRoot
325329
326330 $ this retriever  = $ retriever
                         You can’t perform that action at this time. 
           
                  
0 commit comments