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 8
8
namespace Magento \WishlistGraphQl \Test \Unit \Model \Resolver ;
9
9
10
10
use Magento \Framework \GraphQl \Schema \Type \ResolveInfo ;
11
- use Magento \GraphQl \Model \Query \ContextExtension ;
11
+ use Magento \GraphQl \Model \Query \ContextExtensionInterface ;
12
12
use Magento \GraphQl \Model \Query \ContextInterface ;
13
13
use Magento \Framework \GraphQl \Config \Element \Field ;
14
14
use Magento \Store \Api \Data \StoreInterface ;
@@ -61,7 +61,10 @@ public function testResolve(): void
61
61
$ store ->expects ($ this ->once ())->method ('getWebsiteId ' )->willReturn ($ webId );
62
62
$ store ->expects ($ this ->any ())->method ('getId ' )->willReturn ($ storeId );
63
63
64
- $ extensionAttributes = $ this ->createMock (ContextExtension::class);
64
+ $ extensionAttributes = $ this ->getMockBuilder (ContextExtensionInterface::class)
65
+ ->disableOriginalConstructor ()
66
+ ->addMethods (['getStore ' ])
67
+ ->getMock ();
65
68
$ extensionAttributes ->expects ($ this ->exactly (2 ))
66
69
->method ('getStore ' )
67
70
->willReturn ($ store );
You can’t perform that action at this time.
0 commit comments