Skip to content

Commit b1031f1

Browse files
committed
Merge remote-tracking branch 'origin/MC-41784' into 2.4-develop-pr144
2 parents 9798804 + 76f42b5 commit b1031f1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/internal/Magento/Framework/Composer/ComposerInformation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

lib/internal/Magento/Framework/Composer/Test/Unit/ComposerInformationTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
]

0 commit comments

Comments
 (0)