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 6
6
" AFL-3.0"
7
7
],
8
8
"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"
11
11
},
12
12
"require-dev" : {
13
13
"phpunit/phpunit" : " ~6.5.0"
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ protected function configure()
117
117
);
118
118
119
119
$ mageHelp = '
120
+
120
121
<comment>Magento Root Updates:</comment>
121
122
With <info> ' . PluginDefinition::PACKAGE_NAME . "</info> installed, <info> $ origName</info> will also check for and
122
123
execute any changes to the root composer.json file that exist between the Magento
Original file line number Diff line number Diff line change 2
2
"name" : " magento/composer-root-update-plugin" ,
3
3
"type" : " composer-plugin" ,
4
4
"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 " ,
6
6
"license" : [
7
7
" OSL-3.0" ,
8
8
" AFL-3.0"
9
9
],
10
10
"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"
13
13
},
14
14
"suggest" : {
15
15
"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()
469
469
$ this ->console = new Console ($ this ->io );
470
470
$ this ->retriever = $ this ->createPartialMock (
471
471
RootPackageRetriever::class,
472
- ['getOriginalRootPackage ' , 'getTargetRootPackage ' , 'getUserRootPackage ' ]
472
+ [
473
+ 'getOriginalRootPackage ' ,
474
+ 'getOriginalLabel ' ,
475
+ 'getTargetRootPackage ' ,
476
+ 'getTargetLabel ' ,
477
+ 'getUserRootPackage '
478
+ ]
473
479
);
474
480
$ this ->retriever ->method ('getOriginalRootPackage ' )->willReturn (null );
481
+ $ this ->retriever ->method ('getOriginalLabel ' )->willReturn ('Magento Open Source 1.0.0 ' );
475
482
$ this ->retriever ->method ('getTargetRootPackage ' )->willReturn (null );
483
+ $ this ->retriever ->method ('getTargetLabel ' )->willReturn ('Magento Open Source 2.0.0 ' );
476
484
$ this ->retriever ->method ('getUserRootPackage ' )->willReturn (null );
477
485
}
478
486
}
Original file line number Diff line number Diff line change @@ -310,17 +310,21 @@ public function setUp()
310
310
'getOriginalRootPackage ' ,
311
311
'getOriginalEdition ' ,
312
312
'getOriginalVersion ' ,
313
+ 'getOriginalLabel ' ,
313
314
'getTargetRootPackage ' ,
314
315
'getTargetEdition ' ,
315
316
'getTargetVersion ' ,
317
+ 'getTargetLabel ' ,
316
318
'getUserRootPackage '
317
319
]);
318
320
$ retriever ->method ('getOriginalRootPackage ' )->willReturn ($ baseRoot );
319
321
$ retriever ->method ('getOriginalEdition ' )->willReturn ('community ' );
320
322
$ retriever ->method ('getOriginalVersion ' )->willReturn ('1.0.0.0 ' );
323
+ $ retriever ->method ('getOriginalLabel ' )->willReturn ('Magento Open Source 1.0.0 ' );
321
324
$ retriever ->method ('getTargetRootPackage ' )->willReturn ($ targetRoot );
322
325
$ retriever ->method ('getTargetEdition ' )->willReturn ('community ' );
323
326
$ retriever ->method ('getTargetVersion ' )->willReturn ('2.0.0.0 ' );
327
+ $ retriever ->method ('getTargetLabel ' )->willReturn ('Magento Open Source 2.0.0 ' );
324
328
$ retriever ->method ('getUserRootPackage ' )->willReturn ($ installRoot );
325
329
326
330
$ this ->retriever = $ retriever ;
You can’t perform that action at this time.
0 commit comments