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 33 * Copyright 2024 Adobe
44 * All Rights Reserved.
55 */
6- declare (strict_types = 1 );
6+ declare (strict_types= 1 );
77
88namespace Magento \WishlistGraphQl \Test \Unit \Model \Resolver ;
99
@@ -58,7 +58,10 @@ public function testResolve(): void
5858 $ store = $ this ->createMock (StoreInterface::class);
5959 $ store ->expects ($ this ->once ())->method ('getId ' )->willReturn ($ storeId );
6060
61- $ extensionAttributes = $ this ->createMock (ContextExtensionInterface::class);
61+ $ extensionAttributes = $ this ->getMockBuilder (ContextExtensionInterface::class)
62+ ->disableOriginalConstructor ()
63+ ->addMethods (['getStore ' ])
64+ ->getMock ();
6265 $ extensionAttributes ->expects ($ this ->exactly (2 ))
6366 ->method ('getStore ' )
6467 ->willReturn ($ store );
You can’t perform that action at this time.
0 commit comments