Skip to content

Commit b311865

Browse files
ShradddhaShradddha
authored andcommitted
AC-11979:: Remove Deprecations- PhpUnit10 Integration Tests
1 parent 267cde4 commit b311865

File tree

26 files changed

+168
-162
lines changed

26 files changed

+168
-162
lines changed

dev/tests/integration/framework/Magento/TestFramework/Eav/Model/Attribute/DataProvider/DateTime.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ public static function getUpdateProvider(): array
6969
parent::getUpdateProvider(),
7070
[
7171
"{$frontendInput}_other_attribute_code" => [
72-
'post_data' => [
72+
'postData' => [
7373
'attribute_code' => 'text_attribute_update',
7474
],
75-
'expected_data' => [
75+
'expectedData' => [
7676
'attribute_code' => 'datetime_attribute',
7777
],
7878
],
@@ -90,10 +90,10 @@ public static function getUpdateProviderWithErrorMessage(): array
9090
parent::getUpdateProviderWithErrorMessage(),
9191
[
9292
"{$frontendInput}_wrong_default_value" => [
93-
'post_data' => [
93+
'postData' => [
9494
'default_value_datetime' => '//02/4/2020 6:30 AM',
9595
],
96-
'error_message' => (string)__('The default date is invalid. Verify the date and try again.'),
96+
'errorMessage' => (string)__('The default date is invalid. Verify the date and try again.'),
9797
],
9898
]
9999
);

dev/tests/integration/framework/Magento/TestFramework/Eav/Model/Attribute/DataProvider/DropDown.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public static function getUpdateProvider(): array
3535
parent::getUpdateProvider(),
3636
[
3737
"{$frontendInput}_other_attribute_code" => [
38-
'post_data' => [
38+
'postData' => [
3939
'attribute_code' => 'text_attribute_update',
4040
],
41-
'expected_data' => [
41+
'expectedData' => [
4242
'attribute_code' => 'dropdown_attribute',
4343
],
4444
],

dev/tests/integration/framework/Magento/TestFramework/Eav/Model/Attribute/DataProvider/Text.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ public static function getUpdateProvider(): array
7777
parent::getUpdateProvider(),
7878
[
7979
"{$frontendInput}_other_attribute_code" => [
80-
'post_data' => [
80+
'postData' => [
8181
'attribute_code' => 'varchar_attribute_update',
8282
],
83-
'expected_data' => [
83+
'expectedData' => [
8484
'attribute_code' => 'varchar_attribute',
8585
],
8686
],

dev/tests/integration/framework/Magento/TestFramework/Eav/Model/Attribute/DataProvider/TextArea.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ public static function getUpdateProvider(): array
4949
parent::getUpdateProvider(),
5050
[
5151
"{$frontendInput}_other_attribute_code" => [
52-
'post_data' => [
52+
'postData' => [
5353
'attribute_code' => 'text_attribute_update',
5454
],
55-
'expected_data' => [
55+
'expectedData' => [
5656
'attribute_code' => 'text_attribute',
5757
],
5858
],
5959
"{$frontendInput}_change_frontend_input" => [
60-
'post_data' => [
60+
'postData' => [
6161
'frontend_input' => 'texteditor',
6262
],
63-
'expected_data' => [
63+
'expectedData' => [
6464
'frontend_input' => 'textarea',
6565
'is_wysiwyg_enabled' => '1'
6666
],

dev/tests/integration/framework/Magento/TestFramework/Eav/Model/Attribute/DataProvider/TextEditor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,18 @@ public static function getUpdateProvider(): array
129129
parent::getUpdateProvider(),
130130
[
131131
"{$frontendInput}_other_attribute_code" => [
132-
'post_data' => [
132+
'postData' => [
133133
'attribute_code' => 'text_attribute_update',
134134
],
135-
'expected_data' => [
135+
'expectedData' => [
136136
'attribute_code' => 'text_editor_attribute',
137137
],
138138
],
139139
"{$frontendInput}_change_frontend_input" => [
140-
'post_data' => [
140+
'postData' => [
141141
'frontend_input' => 'textarea',
142142
],
143-
'expected_data' => [
143+
'expectedData' => [
144144
'frontend_input' => 'textarea',
145145
'is_wysiwyg_enabled' => '0'
146146
],

dev/tests/integration/framework/Magento/TestFramework/Eav/Model/Attribute/DataProvider/YesNo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ public static function getUpdateProvider(): array
7171
parent::getUpdateProvider(),
7272
[
7373
"{$frontendInput}_other_attribute_code" => [
74-
'post_data' => [
74+
'postData' => [
7575
'attribute_code' => 'text_attribute_update',
7676
],
77-
'expected_data' => [
77+
'expectedData' => [
7878
'attribute_code' => 'boolean_attribute',
7979
],
8080
],

dev/tests/integration/testsuite/Magento/Bundle/Model/Product/DynamicBundlePriceCalculatorTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static function getTestCases()
9696
{
9797
return [
9898
'#1 Testing price for dynamic bundle product with one simple' => [
99-
'strategy' => self::getBundleConfiguration1(),
99+
'strategyModifiers' => self::getBundleConfiguration1(),
100100
'expectedResults' => [
101101
// just price from simple1
102102
'minimalPrice' => 10,
@@ -106,7 +106,7 @@ public static function getTestCases()
106106
],
107107

108108
'#2 Testing price for dynamic bundle product with three simples and different qty' => [
109-
'strategy' => self::getBundleConfiguration2(),
109+
'strategyModifiers' => self::getBundleConfiguration2(),
110110
'expectedResults' => [
111111
// min price from simples 3*10 or 30
112112
'minimalPrice' => 30,
@@ -116,7 +116,7 @@ public static function getTestCases()
116116
],
117117

118118
'#3 Testing price for dynamic bundle product with four simples and different price' => [
119-
'strategy' => self::getBundleConfiguration3(),
119+
'strategyModifiers' => self::getBundleConfiguration3(),
120120
'expectedResults' => [
121121
// 10
122122
'minimalPrice' => 10,
@@ -126,7 +126,7 @@ public static function getTestCases()
126126
],
127127

128128
'#4 Testing price for dynamic bundle with two non required options' => [
129-
'strategy' => self::getBundleConfiguration4(),
129+
'strategyModifiers' => self::getBundleConfiguration4(),
130130
'expectedResults' => [
131131
// 1 * 10
132132
'minimalPrice' => 10,
@@ -136,7 +136,7 @@ public static function getTestCases()
136136
],
137137

138138
'#5 Testing price for dynamic bundle with two required options' => [
139-
'strategy' => self::getBundleConfiguration5(),
139+
'strategyModifiers' => self::getBundleConfiguration5(),
140140
'expectedResults' => [
141141
// 1 * 10 + 1 * 10
142142
'minimalPrice' => 20,

dev/tests/integration/testsuite/Magento/Bundle/Model/Product/DynamicBundlePriceCalculatorWithDimensionTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static function getTestCases()
9696
{
9797
return [
9898
'#1 Testing price for dynamic bundle product with one simple' => [
99-
'strategy' => self::getBundleConfiguration1(),
99+
'strategyModifiers' => self::getBundleConfiguration1(),
100100
'expectedResults' => [
101101
// just price from simple1
102102
'minimalPrice' => 10,
@@ -106,7 +106,7 @@ public static function getTestCases()
106106
],
107107

108108
'#2 Testing price for dynamic bundle product with three simples and different qty' => [
109-
'strategy' => self::getBundleConfiguration2(),
109+
'strategyModifiers' => self::getBundleConfiguration2(),
110110
'expectedResults' => [
111111
// min price from simples 3*10 or 30
112112
'minimalPrice' => 30,
@@ -116,7 +116,7 @@ public static function getTestCases()
116116
],
117117

118118
'#3 Testing price for dynamic bundle product with four simples and different price' => [
119-
'strategy' => self::getBundleConfiguration3(),
119+
'strategyModifiers' => self::getBundleConfiguration3(),
120120
'expectedResults' => [
121121
// 10
122122
'minimalPrice' => 10,
@@ -126,7 +126,7 @@ public static function getTestCases()
126126
],
127127

128128
'#4 Testing price for dynamic bundle with two non required options' => [
129-
'strategy' => self::getBundleConfiguration4(),
129+
'strategyModifiers' => self::getBundleConfiguration4(),
130130
'expectedResults' => [
131131
// 1 * 10
132132
'minimalPrice' => 10,
@@ -136,7 +136,7 @@ public static function getTestCases()
136136
],
137137

138138
'#5 Testing price for dynamic bundle with two required options' => [
139-
'strategy' => self::getBundleConfiguration5(),
139+
'strategyModifiers' => self::getBundleConfiguration5(),
140140
'expectedResults' => [
141141
// 1 * 10 + 1 * 10
142142
'minimalPrice' => 20,

dev/tests/integration/testsuite/Magento/Bundle/Model/Product/DynamicBundleWithCatalogPriceRuleCalculatorTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static function getTestCases()
5252
{
5353
return [
5454
'#1 Testing price for dynamic bundle with one required option' => [
55-
'strategy' => self::getBundleProductConfiguration1(),
55+
'strategyModifiers' => self::getBundleProductConfiguration1(),
5656
'expectedResults' => [
5757
// 10 * 0.9
5858
'minimalPrice' => 9,
@@ -63,7 +63,7 @@ public static function getTestCases()
6363
],
6464

6565
'#3 Testing price for dynamic bundle with one non required option' => [
66-
'strategy' => self::getBundleProductConfiguration3(),
66+
'strategyModifiers' => self::getBundleProductConfiguration3(),
6767
'expectedResults' => [
6868
// 0.9 * 2 * 10
6969
'minimalPrice' => 18,
@@ -74,7 +74,7 @@ public static function getTestCases()
7474
],
7575

7676
'#4 Testing price for dynamic bundle with one required checkbox type option and 2 simples' => [
77-
'strategy' => self::getBundleProductConfiguration4(),
77+
'strategyModifiers' => self::getBundleProductConfiguration4(),
7878
'expectedResults' => [
7979
// 0.9 * 1 * 10
8080
'minimalPrice' => 9,
@@ -85,7 +85,7 @@ public static function getTestCases()
8585
],
8686

8787
'#5 Testing price for dynamic bundle with one required multi type option and 2 simples' => [
88-
'strategy' => self::getBundleProductConfiguration5(),
88+
'strategyModifiers' => self::getBundleProductConfiguration5(),
8989
'expectedResults' => [
9090
// 0.9 * 1 * 10
9191
'minimalPrice' => 9,
@@ -96,7 +96,7 @@ public static function getTestCases()
9696
],
9797

9898
'#6 Testing price for dynamic bundle with one required radio type option and 2 simples' => [
99-
'strategy' => self::getBundleProductConfiguration6(),
99+
'strategyModifiers' => self::getBundleProductConfiguration6(),
100100
'expectedResults' => [
101101
// 0.9 * 1 * 10
102102
'minimalPrice' => 9,
@@ -107,7 +107,7 @@ public static function getTestCases()
107107
],
108108

109109
'#7 Testing price for dynamic bundle with two required options' => [
110-
'strategy' => self::getBundleProductConfiguration7(),
110+
'strategyModifiers' => self::getBundleProductConfiguration7(),
111111
'expectedResults' => [
112112
// 0.9 * 1 * 10 + 0.9 * 1 * 10
113113
'minimalPrice' => 18,
@@ -118,7 +118,7 @@ public static function getTestCases()
118118
],
119119

120120
'#8 Testing price for dynamic bundle with one required option and one non required' => [
121-
'strategy' => self::getBundleProductConfiguration8(),
121+
'strategyModifiers' => self::getBundleProductConfiguration8(),
122122
'expectedResults' => [
123123
// 1 * 0.9 * 10
124124
'minimalPrice' => 9,
@@ -129,7 +129,7 @@ public static function getTestCases()
129129
],
130130

131131
'#9 Testing price for dynamic bundle with two non required options' => [
132-
'strategy' => self::getBundleProductConfiguration9(),
132+
'strategyModifiers' => self::getBundleProductConfiguration9(),
133133
'expectedResults' => [
134134
// 0.9 * 1 * 10
135135
'minimalPrice' => 9,

dev/tests/integration/testsuite/Magento/Bundle/Model/Product/DynamicBundleWithSpecialPriceCalculatorTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function getTestCases()
7676
{
7777
return [
7878
'#1 Testing price for dynamic bundle with one required option and special price' => [
79-
'strategy' => self::getBundleConfiguration1(),
79+
'strategyModifiers' => self::getBundleConfiguration1(),
8080
'expectedResults' => [
8181
// 0.5 * 10
8282
'minimalPrice' => 5,
@@ -86,7 +86,7 @@ public static function getTestCases()
8686
],
8787

8888
'#2 Testing price for dynamic bundle with one non required option and special price' => [
89-
'strategy' => self::getBundleConfiguration2(),
89+
'strategyModifiers' => self::getBundleConfiguration2(),
9090
'expectedResults' => [
9191
// 0.5 * 2 * 10
9292
'minimalPrice' => 10,
@@ -100,7 +100,7 @@ public static function getTestCases()
100100
#3 Testing price for dynamic bundle
101101
with one required checkbox type option, two simples and special price
102102
' => [
103-
'strategy' => self::getBundleConfiguration3(),
103+
'strategyModifiers' => self::getBundleConfiguration3(),
104104
'expectedResults' => [
105105
// 0.5 * 1 * 10
106106
'minimalPrice' => 5,
@@ -113,7 +113,7 @@ public static function getTestCases()
113113
#4 Testing price for dynamic bundle
114114
with one required multi type option, two simples with special price
115115
' => [
116-
'strategy' => self::getBundleConfiguration4(),
116+
'strategyModifiers' => self::getBundleConfiguration4(),
117117
'expectedResults' => [
118118
// 0.5 * (min (1 * 9.9, 2.5 * 4))
119119
'minimalPrice' => 4.95,
@@ -123,7 +123,7 @@ public static function getTestCases()
123123
],
124124

125125
'#5 Testing price for dynamic bundle with one required option, one non required and special price' => [
126-
'strategy' => self::getBundleConfiguration5(),
126+
'strategyModifiers' => self::getBundleConfiguration5(),
127127
'expectedResults' => [
128128
// 0.5 * (3 * 2.5)
129129
'minimalPrice' => 3.75,
@@ -137,7 +137,7 @@ public static function getTestCases()
137137
],
138138

139139
'#6 Testing price for dynamic bundle with one simple product with special price' => [
140-
'strategy' => self::getBundleConfiguration6(),
140+
'strategyModifiers' => self::getBundleConfiguration6(),
141141
'expectedResults' => [
142142
// 0.5 * min(4 * 2.5, 1 * 9.9)
143143
'minimalPrice' => 4.95,

0 commit comments

Comments
 (0)