Skip to content

Commit 04caefa

Browse files
committed
Fixed API test.
1 parent 9a8e7af commit 04caefa

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'type' => 'field',
1111
'sort_order' => 1,
1212
'is_require' => 1,
13-
'price' => 10,
13+
'price' => -10,
1414
'price_type' => 'fixed',
1515
'sku' => 'sku1',
1616
'max_characters' => 10,
@@ -153,4 +153,14 @@
153153
'price_type' => 'fixed',
154154
'sku' => 'time option sku',
155155
],
156+
[
157+
'title' => 'test negative price',
158+
'type' => 'field',
159+
'sort_order' => 1,
160+
'is_require' => 1,
161+
'price' => -10,
162+
'price_type' => 'fixed',
163+
'sku' => 'sku1',
164+
'max_characters' => 10,
165+
],
156166
];

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,6 @@
1515
'sku' => 'sku1',
1616
'max_characters' => 10,
1717
],
18-
'negative_price' => [
19-
'title' => 'area option',
20-
'type' => 'area',
21-
'sort_order' => 2,
22-
'is_require' => 0,
23-
'price' => -20,
24-
'price_type' => 'percent',
25-
'sku' => 'sku2',
26-
'max_characters' => 20,
27-
28-
],
2918
'negative_value_of_image_size' => [
3019
'title' => 'file option',
3120
'type' => 'file',

0 commit comments

Comments
 (0)