Skip to content

Commit 7673b23

Browse files
committed
ACP2E-3255: [GRAPHQL] model value should be specified when getting customerCart
- Fixed the static test failure.
1 parent cbf2d4d commit 7673b23

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

app/code/Magento/QuoteGraphQl/Test/Unit/Plugin/Model/CreateEmptyCartWithoutCountryValidationTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
use PHPUnit\Framework\TestCase;
2424
use PHPUnit\Framework\MockObject\MockObject;
2525

26+
/**
27+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
28+
*/
2629
class CreateEmptyCartWithoutCountryValidationTest extends TestCase
2730
{
2831
/**
@@ -99,7 +102,8 @@ protected function setUp(): void
99102
public function testAroundCreateEmptyCartForCustomerCreatesNewCart(
100103
int $storeId,
101104
int $customerId,
102-
object $callBack) {
105+
object $callBack
106+
) {
103107
$expectedResult = 123;
104108
$this->storeManager->expects($this->once())
105109
->method('getStore')
@@ -158,7 +162,8 @@ public function testAroundCreateEmptyCartForCustomerCreatesNewCart(
158162
public function testAroundCreateEmptyCartForCustomerHandlesSaveException(
159163
int $storeId,
160164
int $customerId,
161-
object $callBack) {
165+
object $callBack
166+
) {
162167
$this->storeManager->expects($this->once())
163168
->method('getStore')
164169
->willReturn($this->store);
@@ -208,7 +213,8 @@ public function testAroundCreateEmptyCartForCustomerHandlesSaveException(
208213
public static function aroundCreateEmptyCartForCustomerDataProvider(): array
209214
{
210215
return [
211-
[1, 1, function() {}]
216+
[1, 1, function () {
217+
}]
212218
];
213219
}
214220
}

0 commit comments

Comments
 (0)