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
94
94
$ this ->errorMessageFormatterMock ->method ('getFormatted ' )->willReturn ($ exception );
95
95
96
96
$ 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 ();
98
106
$ extensionAttributesMock ->method ('getStore ' )->willReturn ($ this ->createMock (StoreInterface::class));
99
107
$ contextMock ->method ('getExtensionAttributes ' )->willReturn ($ extensionAttributesMock );
100
108
You can’t perform that action at this time.
0 commit comments