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 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
12
use Magento \GraphQl \Model \Query \ContextInterface ;
12
13
use Magento \Framework \GraphQl \Config \Element \Field ;
13
- use Magento \GraphQl \Model \Query \ContextExtensionInterface ;
14
14
use Magento \Store \Api \Data \StoreInterface ;
15
15
use Magento \Store \Model \StoreManagerInterface ;
16
16
use Magento \Store \Model \Website ;
@@ -56,16 +56,12 @@ public function testResolve(): void
56
56
$ webId = $ storeId = $ itemId = 1 ;
57
57
58
58
$ field = $ this ->createMock (Field::class);
59
- $ context = $ this ->getMockBuilder (ContextInterface::class)
60
- ->disableOriginalConstructor ()
61
- ->getMock ();
59
+ $ context = $ this ->createMock (ContextInterface::class);
62
60
$ store = $ this ->createMock (StoreInterface::class);
63
61
$ store ->expects ($ this ->once ())->method ('getWebsiteId ' )->willReturn ($ webId );
64
62
$ store ->expects ($ this ->any ())->method ('getId ' )->willReturn ($ storeId );
65
63
66
- $ extensionAttributes = $ this ->getMockBuilder (ContextExtensionInterface::class)
67
- ->disableOriginalConstructor ()
68
- ->getMock ();
64
+ $ extensionAttributes = $ this ->createMock (ContextExtension::class);
69
65
$ extensionAttributes ->expects ($ this ->exactly (2 ))
70
66
->method ('getStore ' )
71
67
->willReturn ($ store );
You can’t perform that action at this time.
0 commit comments