File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
app/code/Magento/QuoteGraphQl/Test/Unit/Model/Resolver Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments