Skip to content

Commit

Permalink
do not change product availability to default when availability canno…
Browse files Browse the repository at this point in the history
…t be calculated immediately (#1659)
  • Loading branch information
pk16011990 authored Mar 10, 2020
1 parent d952d65 commit 0be9251
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public function testVariantsWithStockCanBeCreated(int $quantity, string $outOfSt
$productData->usingStock = true;
$productData->stockQuantity = $quantity;
$productData->outOfStockAction = $outOfStockAction;
$productData->availability = $this->getReference(AvailabilityDataFixture::AVAILABILITY_IN_STOCK);
if ($outOfStockAvailabilityReference !== null) {
$productData->outOfStockAvailability = $this->getReference($outOfStockAvailabilityReference);
}
Expand Down

0 comments on commit 0be9251

Please sign in to comment.