Skip to content

Commit f022c4e

Browse files
committed
AC-15385::Wrong product price is displayed on the shopping cart with different currencies in different store views
1 parent 6fac22e commit f022c4e

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

app/code/Magento/Tax/Test/Unit/Model/Sales/Total/Quote/CommonTaxCollectorTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
use PHPUnit\Framework\MockObject\MockObject;
3636
use PHPUnit\Framework\TestCase;
3737

38+
/**
39+
* @SuppressWarnings("CouplingBetweenObjects")
40+
*/
3841
class CommonTaxCollectorTest extends TestCase
3942
{
4043
/** @var Config|MockObject */
@@ -1253,7 +1256,6 @@ function (
12531256
$parentCode
12541257
) use (
12551258
$parentItem,
1256-
$childItem,
12571259
$parentMapped,
12581260
$childMapped
12591261
) {
@@ -1278,6 +1280,9 @@ function (
12781280
$this->assertSame([$parentMapped, $childMapped, $extra1, $extra2], $result);
12791281
}
12801282

1283+
/**
1284+
* @SuppressWarnings("ExcessiveMethodLength")
1285+
*/
12811286
public function testConstructorFallsBackToObjectManagerForOptionalDependencies(): void
12821287
{
12831288
// Do not call getInstance() in unit context; no original OM to restore
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<?php
2+
/**
3+
* Copyright 2025 Adobe
4+
* All Rights Reserved.
5+
*/
6+
27
declare(strict_types=1);
38

49
namespace Magento\Tax\Test\Unit\Model\Sales\Total\Quote;
@@ -7,8 +12,4 @@
712

813
class SafeArrayObject extends DataObject
914
{
10-
public function __construct(array $data = [])
11-
{
12-
parent::__construct($data);
13-
}
14-
}
15+
}

0 commit comments

Comments
 (0)