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()
261
261
*/
262
262
public function isSystemPackage ($ packageName = '' )
263
263
{
264
- if (preg_match ('/magento\/product-* / ' , $ packageName ) == 1 ) {
264
+ if (preg_match ('/magento\/product-.*?-edition / ' , $ packageName ) == 1 ) {
265
265
return true ;
266
266
}
267
267
return false ;
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ protected function setUp(): void
57
57
$ this ->packageMock = $ this ->getMockForAbstractClass (CompletePackageInterface::class);
58
58
$ this ->lockerMock ->method ('getLockedRepository ' )->willReturn ($ this ->lockerRepositoryMock );
59
59
$ 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 ' );
62
62
$ this ->packageMock ->method ('getPrettyVersion ' )->willReturn ('123.456.789 ' );
63
63
$ this ->lockerRepositoryMock ->method ('getPackages ' )->willReturn ([$ this ->packageMock ]);
64
64
@@ -75,8 +75,8 @@ protected function setUp(): void
75
75
public function testGetSystemPackages ()
76
76
{
77
77
$ 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 ' ,
80
80
'type ' => 'metapackage ' ,
81
81
'version ' => '123.456.789 '
82
82
]
You can’t perform that action at this time.
0 commit comments