File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
lib/internal/Magento/Framework/Composer Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ public function getSystemPackages()
261261 */
262262 public function isSystemPackage ($ packageName = '' )
263263 {
264- if (preg_match ('/magento\/product-* / ' , $ packageName ) == 1 ) {
264+ if (preg_match ('/magento\/product-.*?-edition / ' , $ packageName ) == 1 ) {
265265 return true ;
266266 }
267267 return false ;
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ protected function setUp(): void
5757 $ this ->packageMock = $ this ->getMockForAbstractClass (CompletePackageInterface::class);
5858 $ this ->lockerMock ->method ('getLockedRepository ' )->willReturn ($ this ->lockerRepositoryMock );
5959 $ this ->packageMock ->method ('getType ' )->willReturn ('metapackage ' );
60- $ this ->packageMock ->method ('getPrettyName ' )->willReturn ('magento/product-test-package-name ' );
61- $ this ->packageMock ->method ('getName ' )->willReturn ('magento/product-test-package-name ' );
60+ $ this ->packageMock ->method ('getPrettyName ' )->willReturn ('magento/product-test-package-name-edition ' );
61+ $ this ->packageMock ->method ('getName ' )->willReturn ('magento/product-test-package-name-edition ' );
6262 $ this ->packageMock ->method ('getPrettyVersion ' )->willReturn ('123.456.789 ' );
6363 $ this ->lockerRepositoryMock ->method ('getPackages ' )->willReturn ([$ this ->packageMock ]);
6464
@@ -75,8 +75,8 @@ protected function setUp(): void
7575 public function testGetSystemPackages ()
7676 {
7777 $ expected = [
78- 'magento/product-test-package-name ' => [
79- 'name ' => 'magento/product-test-package-name ' ,
78+ 'magento/product-test-package-name-edition ' => [
79+ 'name ' => 'magento/product-test-package-name-edition ' ,
8080 'type ' => 'metapackage ' ,
8181 'version ' => '123.456.789 '
8282 ]
You can’t perform that action at this time.
0 commit comments