Skip to content

Commit d201e03

Browse files
committed
ACP2E-4033: Issue mapping translated message to error code when placing order via GraphQL
1 parent efe3b35 commit d201e03

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/code/Magento/QuoteGraphQl/Test/Unit/Model/Resolver/PlaceOrderTranslationTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,15 @@ public function testGetRawMessageIsCalledForErrorMapping(): void
9494
$this->errorMessageFormatterMock->method('getFormatted')->willReturn($exception);
9595

9696
$contextMock = $this->createMock(Context::class);
97-
$extensionAttributesMock = $this->createMock(ContextExtensionInterface::class);
97+
98+
$extensionAttributesMock = $this->getMockBuilder(ContextExtensionInterface::class)
99+
->disableOriginalConstructor()
100+
->addMethods(
101+
[
102+
'getStore',
103+
]
104+
)
105+
->getMock();
98106
$extensionAttributesMock->method('getStore')->willReturn($this->createMock(StoreInterface::class));
99107
$contextMock->method('getExtensionAttributes')->willReturn($extensionAttributesMock);
100108

0 commit comments

Comments
 (0)