Skip to content

Commit 73c2111

Browse files
ShradddhaShradddha
authored andcommitted
AC-11943:: Remove Deprecations- PhpUnit10 WebAPI Tests
1 parent 61bdbc3 commit 73c2111

17 files changed

+62
-62
lines changed

dev/tests/api-functional/testsuite/Magento/Catalog/Api/CategoryRepositoryTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ public static function deleteSystemOrRootDataProvider(): array
217217
{
218218
return [
219219
'system_category' => [
220-
'category_id' => Category::TREE_ROOT_ID,
221-
'exception_message' => self::buildExceptionMessage(Category::TREE_ROOT_ID),
220+
'categoryId' => Category::TREE_ROOT_ID,
221+
'exceptionMsg' => self::buildExceptionMessage(Category::TREE_ROOT_ID),
222222
],
223223
'root_category' => [
224-
'category_id' => 2,
225-
'exception_message' => self::buildExceptionMessage(2),
224+
'categoryId' => 2,
225+
'exceptionMsg' => self::buildExceptionMessage(2),
226226
],
227227
];
228228
}

dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductRepositoryInterfaceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ public static function getListSortingByPositionDataProvider(): array
13741374
{
13751375
return [
13761376
'sort_by_position_descending' => [
1377-
'direction' => SortOrder::SORT_DESC,
1377+
'sortOrder' => SortOrder::SORT_DESC,
13781378
'expectedItems' => [
13791379
'search_product_5',
13801380
'search_product_4',
@@ -1384,7 +1384,7 @@ public static function getListSortingByPositionDataProvider(): array
13841384
],
13851385
],
13861386
'sort_by_position_ascending' => [
1387-
'direction' => SortOrder::SORT_ASC,
1387+
'sortOrder' => SortOrder::SORT_ASC,
13881388
'expectedItems' => [
13891389
'search_product_1',
13901390
'search_product_2',

dev/tests/api-functional/testsuite/Magento/Cms/Api/PageRepositoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,13 +537,13 @@ public static function byStoresProvider(): array
537537
{
538538
return [
539539
'default_store' => [
540-
'request_store' => 'default',
540+
'requestStore' => 'default',
541541
],
542542
'second_store' => [
543-
'request_store' => 'fixture_second_store',
543+
'requestStore' => 'fixture_second_store',
544544
],
545545
'all' => [
546-
'request_store' => 'all',
546+
'requestStore' => 'all',
547547
],
548548
];
549549
}

dev/tests/api-functional/testsuite/Magento/ConfigurableProduct/Api/LinkManagementTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,14 +452,14 @@ public static function errorsDataProvider(): array
452452
{
453453
return [
454454
'simple_instead_of_configurable' => [
455-
'parent_sku' => 'simple2',
456-
'child_sku' => 'configurable',
457-
'error_message' => (string)__("The parent product doesn't have configurable product options."),
455+
'parentSku' => 'simple2',
456+
'childSku' => 'configurable',
457+
'errorMessage' => (string)__("The parent product doesn't have configurable product options."),
458458
],
459459
'simple_with_empty_configurable_attribute_value' => [
460-
'parent_sku' => 'configurable',
461-
'child_sku' => 'simple2',
462-
'error_message' => TESTS_WEB_API_ADAPTER === self::ADAPTER_SOAP
460+
'parentSku' => 'configurable',
461+
'childSku' => 'simple2',
462+
'errorMessage' => TESTS_WEB_API_ADAPTER === self::ADAPTER_SOAP
463463
? (string)__(
464464
'The child product doesn\'t have the "%1" attribute value. Verify the value and try again.'
465465
)

dev/tests/api-functional/testsuite/Magento/Customer/Api/CustomerSharingOptionsTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ public static function getCustomerDataWebsiteScopeDataProvider(): array
162162
{
163163
return [
164164
'Default Store View' => [
165-
'store_code' => 'default',
166-
'exception' => false
165+
'storeCode' => 'default',
166+
'expectingException' => false
167167
],
168168
'Custom Store View' => [
169-
'store_code' => 'fixture_second_store',
170-
'exception' => true
169+
'storeCode' => 'fixture_second_store',
170+
'expectingException' => true
171171
]
172172
];
173173
}
@@ -181,12 +181,12 @@ public static function getCustomerDataGlobalScopeDataProvider(): array
181181
{
182182
return [
183183
'Default Store View' => [
184-
'store_code' => 'default',
185-
'exception' => false
184+
'storeCode' => 'default',
185+
'expectingException' => false
186186
],
187187
'Custom Store View' => [
188-
'store_code' => 'fixture_second_store',
189-
'exception' => false
188+
'storeCode' => 'fixture_second_store',
189+
'expectingException' => false
190190
]
191191
];
192192
}

dev/tests/api-functional/testsuite/Magento/GraphQl/Bundle/BundleProductMultipleOptionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public static function getBundleProductDataProvider(): array
116116
{
117117
return [
118118
'products' => [
119-
'items' => [
119+
'bundleProductDataProvider' => [
120120
[
121121
'sku' => 'bundle-product',
122122
'type_id' => 'bundle',

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/CategoriesQuery/CategoryTreeTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -703,16 +703,16 @@ public static function categoryImageDataProvider(): array
703703
{
704704
return [
705705
'default_filename_strategy' => [
706-
'image_prefix' => null
706+
'imagePrefix' => null
707707
],
708708
'just_filename_strategy' => [
709-
'image_prefix' => ''
709+
'imagePrefix' => ''
710710
],
711711
'with_pub_media_strategy' => [
712-
'image_prefix' => '/media/catalog/category/'
712+
'imagePrefix' => '/media/catalog/category/'
713713
],
714714
'catalog_category_strategy' => [
715-
'image_prefix' => 'catalog/category/'
715+
'imagePrefix' => 'catalog/category/'
716716
],
717717
];
718718
}

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/CategoryAnchorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ public static function categoryAnchorDataProvider(): array
9595
return [
9696
[
9797
'query' => self::getQuery(22),
98-
'store' => 'default',
99-
'data' => [
98+
'storeCode' => 'default',
99+
'category' => [
100100
'category' => [
101101
'id' => 22,
102102
'name' => 'Category_Anchor',
@@ -113,8 +113,8 @@ public static function categoryAnchorDataProvider(): array
113113
],
114114
[
115115
'query' => self::getQuery(11),
116-
'store' => 'default',
117-
'data' => [
116+
'storeCode' => 'default',
117+
'category' => [
118118
'category' => [
119119
'id' => 11,
120120
'name' => 'Category_Default',

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/CategoryEnabledTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ public static function categoryEnabledDataProvider(): array
105105
return [
106106
[
107107
'query' => self::getQuery(44),
108-
'store' => 'default',
109-
'data' => [
108+
'storeCode' => 'default',
109+
'category' => [
110110
'category' => [
111111
'id' => 44,
112112
'name' => 'Category_UA',

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/CategorySpecificFieldsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ public static function categoryFieldsDataProvider(): array
118118
{
119119
return [
120120
[
121-
'category_id' => 10,
122-
'category_fields' => [
121+
'categoryId' => 10,
122+
'categoryFields' => [
123123
'id' => 10,
124124
'include_in_menu' => 0,
125125
'name' => 'Category_en',

0 commit comments

Comments
 (0)