Skip to content

Commit 7c7d0ce

Browse files
committed
MC-40089: Create automated test for: "Try to add a simple product to configurableproduct as an option"
1 parent 32906a7 commit 7c7d0ce

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dev/tests/api-functional/testsuite/Magento/ConfigurableProduct/Api/LinkManagementTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,13 @@ public function errorsDataProvider(): array
459459
'simple_with_empty_configurable_attribute_value' => [
460460
'parent_sku' => 'configurable',
461461
'child_sku' => 'simple2',
462-
'error_message' => (string)__(
463-
'The child product doesn\'t have the "%1" attribute value. Verify the value and try again.'
464-
),
462+
'error_message' => TESTS_WEB_API_ADAPTER === self::ADAPTER_SOAP
463+
? (string)__(
464+
'The child product doesn\'t have the "%1" attribute value. Verify the value and try again.'
465+
)
466+
: (string)__(
467+
'The child product doesn\'t have the \\"%1\\" attribute value. Verify the value and try again.'
468+
),
465469
]
466470
];
467471
}

0 commit comments

Comments
 (0)