Skip to content

Commit dc5aaee

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

File tree

25 files changed

+218
-198
lines changed

25 files changed

+218
-198
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Block/Adminhtml/Product/Edit/Tab/Alerts/PriceTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ public static function alertsDataProvider(): array
5959
{
6060
return [
6161
'without_store_id_filter' => [
62-
'product_sku' => 'simple',
63-
'expected_customer_emails' => 'customer@example.com',
62+
'sku' => 'simple',
63+
'expectedEmail' => 'customer@example.com',
6464
],
6565
'with_store_id_filter' => [
66-
'product_sku' => 'simple_on_second_website_for_price_alert',
67-
'expected_customer_emails' => 'customer_second_ws_with_addr@example.com',
68-
'store_code' => 'fixture_third_store',
66+
'sku' => 'simple_on_second_website_for_price_alert',
67+
'expectedEmail' => 'customer_second_ws_with_addr@example.com',
68+
'storeCode' => 'fixture_third_store',
6969
],
7070
];
7171
}
@@ -89,10 +89,10 @@ public static function storeProvider(): array
8989
{
9090
return [
9191
'without_store_id_param' => [
92-
'store_code' => null,
92+
'storeCode' => null,
9393
],
9494
'with_store_id_param' => [
95-
'store_code' => 'default',
95+
'storeCode' => 'default',
9696
],
9797
];
9898
}

dev/tests/integration/testsuite/Magento/Catalog/Block/Adminhtml/Product/Edit/Tab/Alerts/StockTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ public static function alertsDataProvider(): array
5858
{
5959
return [
6060
'without_store_id_filter' => [
61-
'product_sku' => 'simple',
62-
'expected_customer_emails' => 'customer@example.com',
61+
'sku' => 'simple',
62+
'expectedEmail' => 'customer@example.com',
6363
],
6464
'with_store_id_filter' => [
65-
'product_sku' => 'simple_on_second_website',
66-
'expected_customer_emails' => 'customer_second_ws_with_addr@example.com',
67-
'store_code' => 'fixture_third_store',
65+
'sku' => 'simple_on_second_website',
66+
'expectedEmail' => 'customer_second_ws_with_addr@example.com',
67+
'storeCode' => 'fixture_third_store',
6868
],
6969
];
7070
}
@@ -88,10 +88,10 @@ public static function storeProvider(): array
8888
{
8989
return [
9090
'without_store_id_param' => [
91-
'store_code' => null,
91+
'storeCode' => null,
9292
],
9393
'with_store_id_param' => [
94-
'store_code' => 'default',
94+
'storeCode' => 'default',
9595
],
9696
];
9797
}

dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/ProductTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public static function saveActionWithAlreadyExistingUrlKeyDataProvider()
294294
{
295295
return [
296296
[
297-
'post_data' => [
297+
'postData' => [
298298
'product' =>
299299
[
300300
'attribute_set_id' => '4',
@@ -373,7 +373,7 @@ public static function saveActionTierPriceDataProvider()
373373
{
374374
return [
375375
[
376-
'post_data' => [
376+
'postData' => [
377377
'id' => '1',
378378
'type' => 'simple',
379379
'store' => '0',
@@ -390,7 +390,7 @@ public static function saveActionTierPriceDataProvider()
390390
'configurable_matrix_serialized' => '[]',
391391
'associated_product_ids_serialized' => '[]'
392392
],
393-
'tier_price_for_request' => [
393+
'tierPrice' => [
394394
[
395395
'price_id' => '1',
396396
'website_id' => '0',
@@ -652,7 +652,7 @@ public static function saveActionWithInvalidUrlKeyDataProvider()
652652
{
653653
return [
654654
[
655-
'post_data' => [
655+
'postData' => [
656656
'product' =>
657657
[
658658
'attribute_set_id' => '4',

dev/tests/integration/testsuite/Magento/Catalog/Controller/Category/CategoryUrlRewriteTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,16 @@ public static function categoryRewriteProvider(): array
9999
{
100100
return [
101101
[
102-
'category_id' => 400,
103-
'url_path' => '/category-1%s',
102+
'categoryId' => 400,
103+
'urlPath' => '/category-1%s',
104104
],
105105
[
106-
'category_id' => 401,
107-
'url_path' => '/category-1/category-1-1%s',
106+
'categoryId' => 401,
107+
'urlPath' => '/category-1/category-1-1%s',
108108
],
109109
[
110-
'category_id' => 402,
111-
'url_path' => '/category-1/category-1-1/category-1-1-1%s',
110+
'categoryId' => 402,
111+
'urlPath' => '/category-1/category-1-1/category-1-1-1%s',
112112
],
113113
];
114114
}

dev/tests/integration/testsuite/Magento/Catalog/Model/Layer/Filter/DataProvider/PriceTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,16 @@ public static function getAdditionalRequestDataDataProvider(): array
158158
{
159159
return [
160160
'with_prior_filters' => [
161-
'price_filters' => ['10-11', '20-21', '30-31'],
162-
'expected_request' => ',10-11,20-21,30-31',
161+
'priceFilters' => ['10-11', '20-21', '30-31'],
162+
'expectedRequest' => ',10-11,20-21,30-31',
163163
],
164164
'without_prior_filters' => [
165-
'price_filters' => ['10-11'],
166-
'expected_request' => ',10-11',
165+
'priceFilters' => ['10-11'],
166+
'expectedRequest' => ',10-11',
167167
],
168168
'not_valid_prior_filters' => [
169-
'price_filters' => ['10-11', '20-21', '31', '40-41'],
170-
'expected_request' => ',10-11',
169+
'priceFilters' => ['10-11', '20-21', '31', '40-41'],
170+
'expectedRequest' => ',10-11',
171171
],
172172
];
173173
}

dev/tests/integration/testsuite/Magento/Catalog/Model/ResourceModel/Product/CollectionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@ public static function addIsSaleableAttributeToSortDataProvider(): array
248248
{
249249
return [
250250
[
251-
'product_sku' => 'simple_saleable',
251+
'productSku' => 'simple_saleable',
252252
'order' => Collection::SORT_ORDER_DESC,
253253
],
254254
[
255-
'product_sku' => 'simple_not_saleable',
255+
'productSku' => 'simple_not_saleable',
256256
'order' => Collection::SORT_ORDER_ASC,
257257
]
258258
];
@@ -284,11 +284,11 @@ public static function addPriceAttributeToSortDataProvider(): array
284284
{
285285
return [
286286
[
287-
'product_sku' => 'simple',
287+
'productSku' => 'simple',
288288
'order' => Collection::SORT_ORDER_DESC,
289289
],
290290
[
291-
'product_sku' => 'simple-2',
291+
'productSku' => 'simple-2',
292292
'order' => Collection::SORT_ORDER_ASC,
293293
]
294294
];

dev/tests/integration/testsuite/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/EavTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -118,28 +118,28 @@ public static function modifyMetaWithAttributeProvider(): array
118118

119119
return [
120120
'new_attribute_in_existing_group' => [
121-
'group_name' => 'Content',
122-
'group_code' => 'content',
123-
'attribute_code' => 'text_attribute',
124-
'attribute_meta' => $textAttributeMeta,
121+
'groupName' => 'Content',
122+
'groupCode' => 'content',
123+
'attributeCode' => 'text_attribute',
124+
'attributeMeta' => $textAttributeMeta,
125125
],
126126
'new_attribute_in_new_group' => [
127-
'group_name' => 'Test',
128-
'group_code' => 'test',
129-
'attribute_code' => 'text_attribute',
130-
'attribute_meta' => array_merge($textAttributeMeta, ['source' => 'test']),
127+
'groupName' => 'Test',
128+
'groupCode' => 'test',
129+
'attributeCode' => 'text_attribute',
130+
'attributeMeta' => array_merge($textAttributeMeta, ['source' => 'test']),
131131
],
132132
'old_attribute_moved_to_existing_group' => [
133-
'group_name' => 'Images',
134-
'group_code' => 'image-management',
135-
'attribute_code' => 'url_key',
136-
'attribute_meta' => $urlKeyAttributeMeta,
133+
'groupName' => 'Images',
134+
'groupCode' => 'image-management',
135+
'attributeCode' => 'url_key',
136+
'attributeMeta' => $urlKeyAttributeMeta,
137137
],
138138
'old_attribute_moved_to_new_group' => [
139-
'group_name' => 'Test',
140-
'group_code' => 'test',
141-
'attribute_code' => 'url_key',
142-
'attribute_meta' => array_merge($urlKeyAttributeMeta, ['source' => 'test']),
139+
'groupName' => 'Test',
140+
'groupCode' => 'test',
141+
'attributeCode' => 'url_key',
142+
'attributeMeta' => array_merge($urlKeyAttributeMeta, ['source' => 'test']),
143143
],
144144
];
145145
}

dev/tests/integration/testsuite/Magento/Catalog/Ui/DataProvider/Product/Related/CrossSellDataProviderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ public static function productDataProvider(): array
4141
{
4242
return [
4343
'without_store_code' => [
44-
'store_code' => 'default',
45-
'product_price' => 20,
44+
'storeCode' => 'default',
45+
'price' => 20,
4646
],
4747
'with_store_code' => [
48-
'store_code' => 'fixture_second_store',
49-
'product_price' => 10,
48+
'storeCode' => 'fixture_second_store',
49+
'price' => 10,
5050
],
5151
];
5252
}

dev/tests/integration/testsuite/Magento/Catalog/Ui/DataProvider/Product/Related/UpSellDataProviderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ public static function productDataProvider(): array
4141
{
4242
return [
4343
'without_store_code' => [
44-
'store_code' => 'default',
45-
'product_price' => 20,
44+
'storeCode' => 'default',
45+
'price' => 20,
4646
],
4747
'with_store_code' => [
48-
'store_code' => 'fixture_second_store',
49-
'product_price' => 10,
48+
'storeCode' => 'fixture_second_store',
49+
'price' => 10,
5050
],
5151
];
5252
}

dev/tests/integration/testsuite/Magento/ConfigurableProduct/Block/Product/View/Type/ConfigurableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public static function expectedDataProvider(): array
244244
return [
245245
[
246246
'label' => 'Test Configurable',
247-
'config_data' => [
247+
'expectedConfig' => [
248248
'label' => 'Test Configurable',
249249
'options' => [
250250
[

0 commit comments

Comments
 (0)