Skip to content

Commit 2d86f39

Browse files
committed
MC-17518: Cart Rest API not showing all shipping assignments for multi-shipping
1 parent 7f3057c commit 2d86f39

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/Multishipping/Test/Unit/Controller/Checkout

1 file changed

+4
-1
lines changed

app/code/Magento/Multishipping/Test/Unit/Controller/Checkout/PluginTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ protected function setUp()
5959
public function testExecuteTurnsOffMultishippingModeOnMultishippingQuote(): void
6060
{
6161
$subject = $this->createMock(Index::class);
62-
$extensionAttributes = $this->createMock(CartExtensionInterface::class);
62+
$extensionAttributes = $this->createPartialMock(
63+
CartExtensionInterface::class,
64+
['setShippingAssignments', 'getShippingAssignments']
65+
);
6366
$extensionAttributes->method('getShippingAssignments')
6467
->willReturn(
6568
$this->createMock(ShippingAssignmentInterface::class)

0 commit comments

Comments
 (0)