Skip to content

Commit f9d1b4d

Browse files
ShradddhaShradddha
authored andcommitted
AC-11979:: Remove Deprecations- PhpUnit10 Integration Tests
1 parent 1cdd315 commit f9d1b4d

File tree

38 files changed

+435
-433
lines changed

38 files changed

+435
-433
lines changed

dev/tests/integration/framework/Magento/TestFramework/Catalog/Model/Product/Attribute/DataProvider/Decimal.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public static function getUpdateProvider(): array
5959
parent::getUpdateProvider(),
6060
[
6161
"{$frontendInput}_other_attribute_code" => [
62-
'post_data' => [
62+
'postData' => [
6363
'attribute_code' => 'text_attribute_update',
6464
],
65-
'expected_data' => [
65+
'expectedData' => [
6666
'attribute_code' => 'decimal_attribute',
6767
],
6868
],

dev/tests/integration/framework/Magento/TestFramework/Catalog/Model/Product/Attribute/DataProvider/MediaImage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ public static function getUpdateProvider(): array
6161
parent::getUpdateProvider(),
6262
[
6363
"{$frontendInput}_other_attribute_code" => [
64-
'post_data' => [
64+
'postData' => [
6565
'attribute_code' => 'text_attribute_update',
6666
],
67-
'expected_data' => [
67+
'expectedData' => [
6868
'attribute_code' => 'image_attribute',
6969
],
7070
],

dev/tests/integration/framework/Magento/TestFramework/Swatches/Model/Attribute/DataProvider/TextSwatch.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,31 +102,31 @@ public static function getUpdateProvider(): array
102102
parent::getUpdateProvider(),
103103
[
104104
"{$frontendInput}_other_attribute_code" => [
105-
'post_data' => [
105+
'postData' => [
106106
'attribute_code' => 'text_attribute_update',
107107
],
108-
'expected_data' => [
108+
'expectedData' => [
109109
'attribute_code' => 'text_swatch_attribute',
110110
],
111111
],
112112
"{$frontendInput}_change_frontend_input_swatch_visual" => [
113-
'post_data' => [
113+
'postData' => [
114114
'frontend_input' => Swatch::SWATCH_TYPE_VISUAL_ATTRIBUTE_FRONTEND_INPUT,
115115
'update_product_preview_image' => '1',
116116
'use_product_image_for_swatch' => '1',
117117
],
118-
'expected_data' => [
118+
'expectedData' => [
119119
'frontend_input' => 'select',
120120
'swatch_input_type' => Swatch::SWATCH_INPUT_TYPE_VISUAL,
121121
'update_product_preview_image' => '1',
122122
'use_product_image_for_swatch' => '1',
123123
],
124124
],
125125
"{$frontendInput}_change_frontend_input_dropdown" => [
126-
'post_data' => [
126+
'postData' => [
127127
'frontend_input' => 'select',
128128
],
129-
'expected_data' => [
129+
'expectedData' => [
130130
'frontend_input' => 'select',
131131
'swatch_input_type' => null,
132132
'update_product_preview_image' => null,
@@ -147,7 +147,7 @@ public static function getUpdateOptionsProvider(): array
147147
parent::getUpdateOptionsProvider(),
148148
[
149149
"{$frontendInput}_update_options" => [
150-
'post_data' => [
150+
'postData' => [
151151
'options_array' => [
152152
'option_1' => [
153153
'order' => '4',

dev/tests/integration/framework/Magento/TestFramework/Swatches/Model/Attribute/DataProvider/VisualSwatch.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,30 +102,30 @@ public static function getUpdateProvider(): array
102102
parent::getUpdateProvider(),
103103
[
104104
"{$frontendInput}_other_attribute_code" => [
105-
'post_data' => [
105+
'postData' => [
106106
'attribute_code' => 'text_attribute_update',
107107
],
108-
'expected_data' => [
108+
'expectedData' => [
109109
'attribute_code' => 'visual_swatch_attribute',
110110
],
111111
],
112112
"{$frontendInput}_change_frontend_input_swatch_text" => [
113-
'post_data' => [
113+
'postData' => [
114114
'frontend_input' => Swatch::SWATCH_TYPE_TEXTUAL_ATTRIBUTE_FRONTEND_INPUT,
115115
'update_product_preview_image' => '1',
116116
],
117-
'expected_data' => [
117+
'expectedData' => [
118118
'frontend_input' => 'select',
119119
'swatch_input_type' => Swatch::SWATCH_INPUT_TYPE_TEXT,
120120
'update_product_preview_image' => '1',
121121
'use_product_image_for_swatch' => 0,
122122
],
123123
],
124124
"{$frontendInput}_change_frontend_input_dropdown" => [
125-
'post_data' => [
125+
'postData' => [
126126
'frontend_input' => 'select',
127127
],
128-
'expected_data' => [
128+
'expectedData' => [
129129
'frontend_input' => 'select',
130130
'swatch_input_type' => null,
131131
'update_product_preview_image' => null,
@@ -146,7 +146,7 @@ public static function getUpdateOptionsProvider(): array
146146
parent::getUpdateOptionsProvider(),
147147
[
148148
"{$frontendInput}_update_options" => [
149-
'post_data' => [
149+
'postData' => [
150150
'options_array' => [
151151
'option_1' => [
152152
'order' => '4',

dev/tests/integration/testsuite/Magento/Bundle/Block/Catalog/Product/View/Type/BundleTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ public static function isSalableForStockStatusProvider(): array
110110
{
111111
return [
112112
'is_salable' => [
113-
'is_salable' => true,
114-
'expected_value' => 'In stock',
113+
'isSalable' => true,
114+
'expectedValue' => 'In stock',
115115
],
116116
'is_not_salable' => [
117-
'is_salable' => false,
118-
'expected_value' => 'Out of stock',
117+
'isSalable' => false,
118+
'expectedValue' => 'Out of stock',
119119
],
120120
];
121121
}
@@ -143,12 +143,12 @@ public static function isSalableForCustomizeButtonProvider(): array
143143
{
144144
return [
145145
'is_salable' => [
146-
'is_salable' => true,
147-
'expected_value' => 'Customize and Add to Cart',
146+
'isSalable' => true,
147+
'expectedValue' => 'Customize and Add to Cart',
148148
],
149149
'is_not_salable' => [
150-
'is_salable' => false,
151-
'expected_value' => '',
150+
'isSalable' => false,
151+
'expectedValue' => '',
152152
],
153153
];
154154
}

dev/tests/integration/testsuite/Magento/Bundle/Model/ProductTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,12 @@ public static function shouldUpdateBundleStockStatusIfChildProductsStockStatusCh
318318
'all options are required' => [
319319
true,
320320
true,
321-
'out-of-stock' => [
321+
'outOfStockConfig' => [
322322
'simple1' => [
323323
'is_in_stock' => false
324324
],
325325
],
326-
'in-stock' => [
326+
'inStockConfig' => [
327327
'simple1' => [
328328
'is_in_stock' => true
329329
]
@@ -332,15 +332,15 @@ public static function shouldUpdateBundleStockStatusIfChildProductsStockStatusCh
332332
'all options are optional' => [
333333
false,
334334
false,
335-
'out-of-stock' => [
335+
'outOfStockConfig' => [
336336
'simple1' => [
337337
'is_in_stock' => false
338338
],
339339
'simple2' => [
340340
'is_in_stock' => false
341341
],
342342
],
343-
'in-stock' => [
343+
'inStockConfig' => [
344344
'simple1' => [
345345
'is_in_stock' => true
346346
]

dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Selection/CollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static function getTestCases()
5252
{
5353
return [
5454
'Dynamic bundle product with three Simple products' => [
55-
'variation' => self::getBundleConfiguration(),
55+
'strategy' => self::getBundleConfiguration(),
5656
'expectedCount' => 1
5757
]
5858
];

dev/tests/integration/testsuite/Magento/Catalog/Model/CategoryTest.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -462,16 +462,18 @@ public function testMaximumDescriptionLength(): void
462462
public static function categoryFieldsProvider(): array
463463
{
464464
return [
465-
[
466-
'enable_fields' => [
465+
'enable_fields' => [
466+
'data' => [
467467
'is_active' => '1',
468468
'include_in_menu' => '1',
469-
],
470-
'disable_fields' => [
469+
]
470+
],
471+
'disable_fields' => [
472+
'data' => [
471473
'is_active' => '0',
472474
'include_in_menu' => '0',
473-
],
474-
],
475+
]
476+
]
475477
];
476478
}
477479

dev/tests/integration/testsuite/Magento/Catalog/Model/DesignTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,25 +92,25 @@ public static function getDesignSettingsForProductWithScheduleDesignTest(): arra
9292

9393
return [
9494
'schedule_design_applied' => [
95-
'design_settings' => [
95+
'designSettings' => [
9696
'custom_layout' => '2columns-left',
9797
'custom_design' => '2',
9898
'custom_design_from' => $fromApplied,
9999
'custom_design_to' => $to,
100100
],
101-
'expected_settings' => [
101+
'expectedSetting' => [
102102
'page_layout' => '2columns-left',
103103
'custom_design' => '2',
104104
]
105105
],
106106
'schedule_design_not_applied' => [
107-
'design_settings' => [
107+
'designSettings' => [
108108
'custom_layout' => '2columns-left',
109109
'custom_design' => '2',
110110
'custom_design_from' => $fromNotApplied,
111111
'custom_design_to' => $to,
112112
],
113-
'expected_settings' => [
113+
'expectedSetting' => [
114114
'page_layout' => '3columns',
115115
'custom_design' => null,
116116
]

dev/tests/integration/testsuite/Magento/Catalog/Model/Entity/Product/Attribute/Design/Options/ContainerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ public static function getOptionTextDataProvider(): array
5555
return [
5656
'with_value' => [
5757
'value' => 'container2',
58-
'expected_value' => __('Block after Info Column'),
58+
'expectedValue' => __('Block after Info Column'),
5959
],
6060
'with_not_valid_value' => [
6161
'value' => 'container3',
62-
'expected_value' => false,
62+
'expectedValue' => false,
6363
],
6464
];
6565
}

0 commit comments

Comments
 (0)