File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
app/code/Magento/WishlistGraphQl/Test/Unit/Model/Resolver Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 88namespace Magento \WishlistGraphQl \Test \Unit \Model \Resolver ;
99
1010use Magento \Framework \GraphQl \Schema \Type \ResolveInfo ;
11- use Magento \GraphQl \Model \Query \ContextExtension ;
11+ use Magento \GraphQl \Model \Query \ContextExtensionInterface ;
1212use Magento \GraphQl \Model \Query \ContextInterface ;
1313use Magento \Framework \GraphQl \Config \Element \Field ;
1414use Magento \Store \Api \Data \StoreInterface ;
@@ -61,7 +61,10 @@ public function testResolve(): void
6161 $ store ->expects ($ this ->once ())->method ('getWebsiteId ' )->willReturn ($ webId );
6262 $ store ->expects ($ this ->any ())->method ('getId ' )->willReturn ($ storeId );
6363
64- $ extensionAttributes = $ this ->createMock (ContextExtension::class);
64+ $ extensionAttributes = $ this ->getMockBuilder (ContextExtensionInterface::class)
65+ ->disableOriginalConstructor ()
66+ ->addMethods (['getStore ' ])
67+ ->getMock ();
6568 $ extensionAttributes ->expects ($ this ->exactly (2 ))
6669 ->method ('getStore ' )
6770 ->willReturn ($ store );
You can’t perform that action at this time.
0 commit comments