Skip to content

Commit

Permalink
ACP2E-924: MSI - Inventory Compensation command is not working proper…
Browse files Browse the repository at this point in the history
…ly for partial shipment of the Configurable products
  • Loading branch information
bubasuma committed Jun 23, 2022
1 parent 97aa8d7 commit 4cebc0e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function testFindMissingReservationConfigurableProductCustomStock(): void
public function testExecuteWithPagination(): void
{
$items = [];
foreach($this->getSalableQuantityInconsistencies->execute() as $inconsistencies) {
foreach ($this->getSalableQuantityInconsistencies->execute() as $inconsistencies) {
$items += $inconsistencies;
}
self::assertCount(1, $items);
Expand All @@ -165,7 +165,7 @@ public function testExecuteWithPagination(): void
public function testExecuteEmptyWithPagination()
{
$bunchSize = 1;
foreach($this->getSalableQuantityInconsistencies->execute($bunchSize) as $inconsistencies) {
foreach ($this->getSalableQuantityInconsistencies->execute($bunchSize) as $inconsistencies) {
self::assertEmpty($inconsistencies);
}
}
Expand Down Expand Up @@ -207,7 +207,7 @@ public function testCanceledOrderWithExistingReservation(): void
DataFixture(AttributeFixture::class, as: 'attr'),
DataFixture(
ConfigurableProductFixture::class,
['_options' => ['$attr$'],'_links' => ['$p1$','$p2$']],
['_options' => ['$attr$'], '_links' => ['$p1$', '$p2$']],
'cp1'
),
DataFixture(GuestCartFixture::class, as: 'cart'),
Expand Down Expand Up @@ -243,7 +243,7 @@ public function testPartiallyShippedConfigurableProduct(): void
DataFixture(BundleOptionFixture::class, ['product_links' => ['$p2$']], 'opt2'),
DataFixture(
BundleProductFixture::class,
['sku' => 'bundle1', '_options' => ['$opt1$','$opt2$']],
['sku' => 'bundle1', '_options' => ['$opt1$', '$opt2$']],
'bp1'
),
DataFixture(GuestCartFixture::class, as: 'cart'),
Expand Down Expand Up @@ -302,7 +302,7 @@ public function testPartiallyShippedBundleProduct(): void
DataFixture(PlaceOrderFixture::class, ['cart_id' => '$cart.id$'], 'order'),
DataFixture(
ShipmentFixture::class,
['order_id' => '$order.id$', 'items' => [['product_id' => '$p1.id$'],['product_id' => '$p2.id$']]]
['order_id' => '$order.id$', 'items' => [['product_id' => '$p1.id$'], ['product_id' => '$p2.id$']]]
),
]
public function testPartiallyShippedGroupedProduct(): void
Expand Down

0 comments on commit 4cebc0e

Please sign in to comment.