We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d33b18e + 77950cf commit c275cabCopy full SHA for c275cab
dev/tests/functional/tests/app/Magento/SalesRule/Test/Handler/SalesRule/Webapi.php
@@ -42,7 +42,7 @@ class Webapi extends AbstractWebapi implements SalesRuleInterface
42
43
/**
44
* List fields that only relate to coupon.
45
- *
+ *
46
* @var array
47
*/
48
protected $couponFields = [
@@ -218,7 +218,7 @@ protected function createCoupon($ruleId)
218
'coupon' => array_filter([
219
'rule_id' => $ruleId,
220
'code' => $this->fixture->getCouponCode(),
221
- 'type' => $this->data['coupon_type'],
+ 'type' => $this->mappingData['coupon_type'][$this->fixture->getCouponType()],
222
'usage_limit' => isset($this->data['uses_per_coupon'])
223
? $this->data['uses_per_coupon']
224
: null,
0 commit comments