Skip to content

Commit 5865641

Browse files
committed
ACP2E-3647: [CLOUD]: GraphQl error Internal server error placeOrder mutation
1 parent 72c876f commit 5865641

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/code/Magento/SalesGraphQl/Test/Unit/Model/Resolver/OrderTotalTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ class OrderTotalTest extends TestCase
2525
*/
2626
private $orderMock;
2727

28-
/**
29-
* @var QuoteFactory|MockObject
30-
*/
31-
private $quoteFactoryMock;
32-
3328
/**
3429
* @var OrderTotal|MockObject
3530
*/
@@ -60,7 +55,6 @@ protected function setUp(): void
6055
$this->contextMock = $this->createMock(ContextInterface::class);
6156
$this->fieldMock = $this->createMock(Field::class);
6257
$this->resolveInfoMock = $this->createMock(ResolveInfo::class);
63-
$this->quoteFactoryMock = $this->createMock(QuoteFactory::class);
6458
$this->extensionAttributesMock = $this->createMock(OrderExtensionInterface::class);
6559
$this->orderMock = $this->createMock(OrderInterface::class);
6660
$this->orderMock->method('getOrderCurrencyCode')->willReturn('USD');
@@ -73,7 +67,7 @@ protected function setUp(): void
7367
$this->orderMock->method('getShippingInclTax')->willReturn(7.00);
7468
$this->orderMock->method('getDiscountAmount')->willReturn(7.00);
7569
$this->orderMock->method('getDiscountDescription')->willReturn('TEST123');
76-
$this->orderTotal = new OrderTotal($this->quoteFactoryMock);
70+
$this->orderTotal = new OrderTotal();
7771
}
7872

7973
public function testResolve(): void

0 commit comments

Comments
 (0)