File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
app/code/Magento/WishlistGraphQl/Test/Unit/Model/Resolver Expand file tree Collapse file tree 1 file changed +3
-7
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 ;
1112use Magento \GraphQl \Model \Query \ContextInterface ;
1213use Magento \Framework \GraphQl \Config \Element \Field ;
13- use Magento \GraphQl \Model \Query \ContextExtensionInterface ;
1414use Magento \Store \Api \Data \StoreInterface ;
1515use Magento \Store \Model \StoreManagerInterface ;
1616use Magento \Store \Model \Website ;
@@ -56,16 +56,12 @@ public function testResolve(): void
5656 $ webId = $ storeId = $ itemId = 1 ;
5757
5858 $ field = $ this ->createMock (Field::class);
59- $ context = $ this ->getMockBuilder (ContextInterface::class)
60- ->disableOriginalConstructor ()
61- ->getMock ();
59+ $ context = $ this ->createMock (ContextInterface::class);
6260 $ store = $ this ->createMock (StoreInterface::class);
6361 $ store ->expects ($ this ->once ())->method ('getWebsiteId ' )->willReturn ($ webId );
6462 $ store ->expects ($ this ->any ())->method ('getId ' )->willReturn ($ storeId );
6563
66- $ extensionAttributes = $ this ->getMockBuilder (ContextExtensionInterface::class)
67- ->disableOriginalConstructor ()
68- ->getMock ();
64+ $ extensionAttributes = $ this ->createMock (ContextExtension::class);
6965 $ extensionAttributes ->expects ($ this ->exactly (2 ))
7066 ->method ('getStore ' )
7167 ->willReturn ($ store );
You can’t perform that action at this time.
0 commit comments