@@ -232,52 +232,29 @@ public function validateDataDataProvider()
232
232
[
233
233
'simple_action ' => 'by_fixed ' ,
234
234
'discount_amount ' => '123 ' ,
235
- 'sub_is_enable ' => '0 ' ,
236
- 'sub_simple_action ' => 'by_percent ' ,
237
- 'sub_discount_amount ' => '123 ' ,
238
235
],
239
236
true
240
237
],
241
238
[
242
239
[
243
240
'simple_action ' => 'by_percent ' ,
244
241
'discount_amount ' => '9,99 ' ,
245
- 'sub_is_enable ' => '0 ' ,
246
242
],
247
243
true
248
244
],
249
- [
250
- [
251
- 'simple_action ' => 'by_fixed ' ,
252
- 'discount_amount ' => '123 ' ,
253
- 'sub_is_enable ' => '1 ' ,
254
- 'sub_simple_action ' => 'by_percent ' ,
255
- 'sub_discount_amount ' => '123 ' ,
256
- ],
257
- [
258
- 'Percentage discount should be between 0 and 100. ' ,
259
- ]
260
- ],
261
245
[
262
246
[
263
247
'simple_action ' => 'by_percent ' ,
264
248
'discount_amount ' => '123.12 ' ,
265
- 'sub_is_enable ' => '1 ' ,
266
- 'sub_simple_action ' => 'to_percent ' ,
267
- 'sub_discount_amount ' => '123.001 ' ,
268
249
],
269
250
[
270
251
'Percentage discount should be between 0 and 100. ' ,
271
- 'Percentage discount should be between 0 and 100. ' ,
272
252
]
273
253
],
274
254
[
275
255
[
276
256
'simple_action ' => 'to_percent ' ,
277
257
'discount_amount ' => '-12 ' ,
278
- 'sub_is_enable ' => '1 ' ,
279
- 'sub_simple_action ' => 'to_fixed ' ,
280
- 'sub_discount_amount ' => '567.8901 ' ,
281
258
],
282
259
[
283
260
'Percentage discount should be between 0 and 100. ' ,
@@ -287,20 +264,15 @@ public function validateDataDataProvider()
287
264
[
288
265
'simple_action ' => 'to_fixed ' ,
289
266
'discount_amount ' => '-1234567890 ' ,
290
- 'sub_is_enable ' => '1 ' ,
291
- 'sub_simple_action ' => 'by_fixed ' ,
292
- 'sub_discount_amount ' => '-5 ' ,
293
267
],
294
268
[
295
269
'Discount value should be 0 or greater. ' ,
296
- 'Discount value should be 0 or greater. ' ,
297
270
]
298
271
],
299
272
[
300
273
[
301
274
'simple_action ' => 'invalid action ' ,
302
275
'discount_amount ' => '12 ' ,
303
- 'sub_is_enable ' => '0 ' ,
304
276
],
305
277
[
306
278
'Unknown action. ' ,
0 commit comments