Skip to content

Commit 105dd44

Browse files
committed
ACP2E-3987: Wishlist items are not shared between stores views within one website in GraphQL request
1 parent 65719a5 commit 105dd44

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/WishlistGraphQl/Test/Unit/Model/Resolver/WishlistItemsTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Magento\WishlistGraphQl\Test\Unit\Model\Resolver;
99

1010
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
11-
use Magento\GraphQl\Model\Query\ContextExtension;
11+
use Magento\GraphQl\Model\Query\ContextExtensionInterface;
1212
use Magento\GraphQl\Model\Query\ContextInterface;
1313
use Magento\Framework\GraphQl\Config\Element\Field;
1414
use Magento\Store\Api\Data\StoreInterface;
@@ -61,7 +61,10 @@ public function testResolve(): void
6161
$store->expects($this->once())->method('getWebsiteId')->willReturn($webId);
6262
$store->expects($this->any())->method('getId')->willReturn($storeId);
6363

64-
$extensionAttributes = $this->createMock(ContextExtension::class);
64+
$extensionAttributes = $this->getMockBuilder(ContextExtensionInterface::class)
65+
->disableOriginalConstructor()
66+
->addMethods(['getStore'])
67+
->getMock();
6568
$extensionAttributes->expects($this->exactly(2))
6669
->method('getStore')
6770
->willReturn($store);

0 commit comments

Comments
 (0)