Skip to content

Commit 5d6600e

Browse files
schmenglerMastiuhin Oleksandr
authored and
Mastiuhin Oleksandr
committed
Distinguish between non existing SKU and missing SKU in API test
(cherry picked from commit 0253aec)
1 parent 353c04c commit 5d6600e

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

dev/tests/api-functional/testsuite/Magento/Catalog/Api/_files/product_options_update_negative.php

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,29 @@
55
*/
66

77
return [
8-
'missed_product_sku' =>
8+
'missing_product_sku' => [
99
[
10-
[
11-
'title' => 'title',
12-
'type' => 'field',
13-
'sort_order' => 1,
14-
'is_require' => 1,
15-
'price' => 10.0,
16-
'price_type' => 'fixed',
17-
'sku' => 'sku1',
18-
'max_characters' => 10,
19-
],
20-
'The ProductSku is empty. Set the ProductSku and try again.',
21-
]
10+
'title' => 'title',
11+
'type' => 'field',
12+
'sort_order' => 1,
13+
'is_require' => 1,
14+
'price' => 10.0,
15+
'price_type' => 'fixed',
16+
'max_characters' => 10,
17+
],
18+
'The ProductSku is empty. Set the ProductSku and try again.',
19+
],
20+
'invalid_product_sku' => [
21+
[
22+
'title' => 'title',
23+
'type' => 'field',
24+
'sort_order' => 1,
25+
'is_require' => 1,
26+
'price' => 10.0,
27+
'price_type' => 'fixed',
28+
'sku' => 'sku1',
29+
'max_characters' => 10,
30+
],
31+
"The product that was requested doesn't exist. Verify the product and try again.",
32+
],
2233
];

0 commit comments

Comments
 (0)