Skip to content

Commit

Permalink
use $productAbstractOverride instead of $productConcreteOverride when
Browse files Browse the repository at this point in the history
using haveProductAbstract helper method
  • Loading branch information
greinerdavid committed Jun 27, 2024
1 parent 28745ee commit d8f3fd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function haveProductAbstract(array $productAbstractOverride = [], bool $l
$localizedAttributes = (new LocalizedAttributesBuilder([
LocalizedAttributesTransfer::NAME => uniqid('Product #', true),
LocalizedAttributesTransfer::LOCALE => $this->getCurrentLocale(),
LocalizedAttributesTransfer::ATTRIBUTES => $productConcreteOverride[ProductConcreteTransfer::ATTRIBUTES] ?? [],
LocalizedAttributesTransfer::ATTRIBUTES => $productAbstractOverride[ProductAbstractTransfer::ATTRIBUTES] ?? [],
]))->build()->toArray();

$productAbstractTransfer->withLocalizedAttributes($localizedAttributes);
Expand Down

0 comments on commit d8f3fd6

Please sign in to comment.