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 3
3
* Copyright 2024 Adobe
4
4
* All Rights Reserved.
5
5
*/
6
- declare (strict_types = 1 );
6
+ declare (strict_types= 1 );
7
7
8
8
namespace Magento \WishlistGraphQl \Test \Unit \Model \Resolver ;
9
9
@@ -58,7 +58,10 @@ public function testResolve(): void
58
58
$ store = $ this ->createMock (StoreInterface::class);
59
59
$ store ->expects ($ this ->once ())->method ('getId ' )->willReturn ($ storeId );
60
60
61
- $ extensionAttributes = $ this ->createMock (ContextExtensionInterface::class);
61
+ $ extensionAttributes = $ this ->getMockBuilder (ContextExtensionInterface::class)
62
+ ->disableOriginalConstructor ()
63
+ ->addMethods (['getStore ' ])
64
+ ->getMock ();
62
65
$ extensionAttributes ->expects ($ this ->exactly (2 ))
63
66
->method ('getStore ' )
64
67
->willReturn ($ store );
You can’t perform that action at this time.
0 commit comments