Skip to content

Commit ef10afa

Browse files
committed
AC-15856: Internal Server Error When Adding Gift Card product to Cart via AddProductsToCart Mutation including custom_attributesV2
Remove banned word to fix static sanity check error
1 parent b82d0d4 commit ef10afa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/CatalogGraphQl/Test/Unit/Model/Resolver/Product/ProductCustomAttributesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public function testResolveWithFlatArrayAttribute(): void
229229
public function testResolveWithMultiDimensionalArrayAttribute(): void
230230
{
231231
$productId = 1;
232-
$attributeCode = 'giftcard_amounts';
232+
$attributeCode = 'gift_card_amounts';
233233

234234
$attributeMock = $this->getMockForAbstractClass(AttributeInterface::class);
235235
$attributeMock->method('getAttributeCode')->willReturn($attributeCode);

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/Product/CustomAttributesV2Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function testCustomAttributesV2WithSimpleProduct()
9494
/**
9595
* Test that custom_attributesV2 gracefully handles multi-dimensional array attributes
9696
*
97-
* This test verifies that attributes with complex nested array structures (like giftcard_amounts)
97+
* This test verifies that attributes with complex nested array structures
9898
* are skipped without causing errors, while other simple attributes are still returned.
9999
*
100100
* @return void

0 commit comments

Comments
 (0)