Skip to content

Commit 30337cc

Browse files
committed
Issue #2981941: Tests are still using the deprecated "amount" setting for order_percentage_off offers
1 parent d7de1bf commit 30337cc

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

modules/promotion/tests/src/Functional/CouponTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function setUp() {
5555
'offer' => [
5656
'target_plugin_id' => 'order_percentage_off',
5757
'target_plugin_configuration' => [
58-
'amount' => '0.10',
58+
'percentage' => '0.10',
5959
],
6060
],
6161
'start_date' => '2017-01-01',

modules/promotion/tests/src/Kernel/PromotionCartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function testPromotionCart() {
9797
'offer' => [
9898
'target_plugin_id' => 'order_percentage_off',
9999
'target_plugin_configuration' => [
100-
'amount' => '0.10',
100+
'percentage' => '0.10',
101101
],
102102
],
103103
'start_date' => '2017-01-01',

modules/promotion/tests/src/Kernel/PromotionCompatibilityTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function testCompatibility() {
9898
'offer' => [
9999
'target_plugin_id' => 'order_percentage_off',
100100
'target_plugin_configuration' => [
101-
'amount' => '0.10',
101+
'percentage' => '0.10',
102102
],
103103
],
104104
]);
@@ -112,7 +112,7 @@ public function testCompatibility() {
112112
'offer' => [
113113
'target_plugin_id' => 'order_percentage_off',
114114
'target_plugin_configuration' => [
115-
'amount' => '0.10',
115+
'percentage' => '0.10',
116116
],
117117
],
118118
]);

modules/promotion/tests/src/Kernel/PromotionConditionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function testOrderCondition() {
8989
'offer' => [
9090
'target_plugin_id' => 'order_percentage_off',
9191
'target_plugin_configuration' => [
92-
'amount' => '0.10',
92+
'percentage' => '0.10',
9393
],
9494
],
9595
'conditions' => [
@@ -162,7 +162,7 @@ public function testMixedCondition() {
162162
'offer' => [
163163
'target_plugin_id' => 'order_percentage_off',
164164
'target_plugin_configuration' => [
165-
'amount' => '0.10',
165+
'percentage' => '0.10',
166166
],
167167
],
168168
'conditions' => [

modules/promotion/tests/src/Kernel/PromotionOrderProcessorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function testOrderTotal() {
103103
'offer' => [
104104
'target_plugin_id' => 'order_percentage_off',
105105
'target_plugin_configuration' => [
106-
'amount' => '0.10',
106+
'percentage' => '0.10',
107107
],
108108
],
109109
'conditions' => [
@@ -153,7 +153,7 @@ public function testCouponPromotion() {
153153
'offer' => [
154154
'target_plugin_id' => 'order_percentage_off',
155155
'target_plugin_configuration' => [
156-
'amount' => '0.10',
156+
'percentage' => '0.10',
157157
],
158158
],
159159
'conditions' => [

modules/promotion/tests/src/Kernel/UsageTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function testOrderIntegration() {
177177
'offer' => [
178178
'target_plugin_id' => 'order_percentage_off',
179179
'target_plugin_configuration' => [
180-
'amount' => '0.10',
180+
'percentage' => '0.10',
181181
],
182182
],
183183
'start_date' => '2017-01-01',
@@ -226,7 +226,7 @@ public function testPromotionFiltering() {
226226
'offer' => [
227227
'target_plugin_id' => 'order_percentage_off',
228228
'target_plugin_configuration' => [
229-
'amount' => '0.10',
229+
'percentage' => '0.10',
230230
],
231231
],
232232
'usage_limit' => 1,

0 commit comments

Comments
 (0)