Skip to content

Commit f8d5abd

Browse files
AC-12092_PHPUnit10: Providing invalid named argument is deprecated and will not be supported in PHPUnit 11.0
1 parent 77a77f9 commit f8d5abd

File tree

72 files changed

+855
-878
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+855
-878
lines changed

app/code/Magento/CatalogImportExport/Test/Unit/Model/Import/Product/CategoryProcessorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@ public static function getCategoryByIdDataProvider()
173173
{
174174
return [
175175
[
176-
'$categoriesCache' => [
176+
'categoriesCache' => [
177177
'category_id' => 'category_id value',
178178
],
179-
'$expectedResult' => 'category_id value',
179+
'expectedResult' => 'category_id value',
180180
],
181181
[
182-
'$categoriesCache' => [],
183-
'$expectedResult' => null,
182+
'categoriesCache' => [],
183+
'expectedResult' => null,
184184
],
185185
];
186186
}

app/code/Magento/CatalogImportExport/Test/Unit/Model/Import/Product/Type/AbstractTypeTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -361,15 +361,15 @@ public static function addAttributeOptionDataProvider()
361361
{
362362
return [
363363
[
364-
'$code' => 'attr set name value key',
365-
'$optionKey' => 'option key',
366-
'$optionValue' => 'option value',
367-
'$initAttributes' => [
364+
'code' => 'attr set name value key',
365+
'optionKey' => 'option key',
366+
'optionValue' => 'option value',
367+
'initAttributes' => [
368368
'attr set name' => [
369369
'attr set name value key' => [],
370370
],
371371
],
372-
'$resultAttributes' => [
372+
'resultAttributes' => [
373373
'attr set name' => [
374374
'attr set name value key' => [
375375
'options' => [
@@ -380,15 +380,15 @@ public static function addAttributeOptionDataProvider()
380380
],
381381
],
382382
[
383-
'$code' => 'attr set name value key',
384-
'$optionKey' => 'option key',
385-
'$optionValue' => 'option value',
386-
'$initAttributes' => [
383+
'code' => 'attr set name value key',
384+
'optionKey' => 'option key',
385+
'optionValue' => 'option value',
386+
'initAttributes' => [
387387
'attr set name' => [
388388
'not equal to code value' => [],
389389
],
390390
],
391-
'$resultAttributes' => [
391+
'resultAttributes' => [
392392
'attr set name' => [
393393
'not equal to code value' => [],
394394
],

app/code/Magento/CatalogImportExport/Test/Unit/Model/Import/Product/Type/OptionTest.php

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -879,12 +879,12 @@ public static function validateRowStoreViewCodeFieldDataProvider(): array
879879
{
880880
return [
881881
'with_store_view_code' => [
882-
'$rowData' => [
882+
'rowData' => [
883883
'store_view_code' => '',
884884
'custom_options' => 'name=Test Field Title,type=field,required=1'
885885
. ';sku=1-text,price=0,price_type=fixed'
886886
],
887-
'$responseData' => [
887+
'responseData' => [
888888
'store_view_code' => '',
889889
'custom_options' => [
890890
'Test Field Title' => [
@@ -902,11 +902,11 @@ public static function validateRowStoreViewCodeFieldDataProvider(): array
902902
]
903903
],
904904
'without_store_view_code' => [
905-
'$rowData' => [
905+
'rowData' => [
906906
'custom_options' => 'name=Test Field Title,type=field,required=1'
907907
. ';sku=1-text,price=0,price_type=fixed'
908908
],
909-
'$responseData' => [
909+
'responseData' => [
910910
'custom_options' => [
911911
'Test Field Title' => [
912912
[
@@ -934,88 +934,88 @@ public static function validateRowDataProvider(): array
934934
{
935935
return [
936936
'main_valid' => [
937-
'$rowData' => include __DIR__ . '/_files/row_data_main_valid.php',
938-
'$errors' => []
937+
'rowData' => include __DIR__ . '/_files/row_data_main_valid.php',
938+
'errors' => []
939939
],
940940
'main_invalid_store' => [
941-
'$rowData' => include __DIR__ . '/_files/row_data_main_invalid_store.php',
942-
'$errors' => [
941+
'rowData' => include __DIR__ . '/_files/row_data_main_invalid_store.php',
942+
'errors' => [
943943
Option::ERROR_INVALID_STORE => [1]
944944
]
945945
],
946946
'main_incorrect_type' => [
947-
'$rowData' => include __DIR__ . '/_files/row_data_main_incorrect_type.php',
948-
'$errors' => [
947+
'rowData' => include __DIR__ . '/_files/row_data_main_incorrect_type.php',
948+
'errors' => [
949949
Option::ERROR_INVALID_TYPE => [1]
950950
]
951951
],
952952
'main_no_title' => [
953-
'$rowData' => include __DIR__ . '/_files/row_data_main_no_title.php',
954-
'$errors' => [
953+
'rowData' => include __DIR__ . '/_files/row_data_main_no_title.php',
954+
'errors' => [
955955
Option::ERROR_EMPTY_TITLE => [1]
956956
]
957957
],
958958
'main_empty_title' => [
959-
'$rowData' => include __DIR__ . '/_files/row_data_main_empty_title.php',
960-
'$errors' => [
959+
'rowData' => include __DIR__ . '/_files/row_data_main_empty_title.php',
960+
'errors' => [
961961
Option::ERROR_EMPTY_TITLE => [1]
962962
]
963963
],
964964
'main_invalid_price' => [
965-
'$rowData' => include __DIR__ . '/_files/row_data_main_invalid_price.php',
966-
'$errors' => [
965+
'rowData' => include __DIR__ . '/_files/row_data_main_invalid_price.php',
966+
'errors' => [
967967
Option::ERROR_INVALID_PRICE => [1]
968968
]
969969
],
970970
'main_invalid_max_characters' => [
971-
'$rowData' => include __DIR__ . '/_files/row_data_main_invalid_max_characters.php',
972-
'$errors' => [
971+
'rowData' => include __DIR__ . '/_files/row_data_main_invalid_max_characters.php',
972+
'errors' => [
973973
Option::ERROR_INVALID_MAX_CHARACTERS => [1]
974974
]
975975
],
976976
'main_max_characters_less_zero' => [
977-
'$rowData' => include __DIR__ . '/_files/row_data_main_max_characters_less_zero.php',
978-
'$errors' => [
977+
'rowData' => include __DIR__ . '/_files/row_data_main_max_characters_less_zero.php',
978+
'errors' => [
979979
Option::ERROR_INVALID_MAX_CHARACTERS => [1]
980980
]
981981
],
982982
'main_invalid_sort_order' => [
983-
'$rowData' => include __DIR__ . '/_files/row_data_main_invalid_sort_order.php',
984-
'$errors' => [
983+
'rowData' => include __DIR__ . '/_files/row_data_main_invalid_sort_order.php',
984+
'errors' => [
985985
Option::ERROR_INVALID_SORT_ORDER => [1]
986986
]
987987
],
988988
'main_sort_order_less_zero' => [
989-
'$rowData' => include __DIR__ . '/_files/row_data_main_sort_order_less_zero.php',
990-
'$errors' => [
989+
'rowData' => include __DIR__ . '/_files/row_data_main_sort_order_less_zero.php',
990+
'errors' => [
991991
Option::ERROR_INVALID_SORT_ORDER => [1]
992992
]
993993
],
994994
'secondary_valid' => [
995-
'$rowData' => include __DIR__ . '/_files/row_data_secondary_valid.php',
996-
'$errors' => []
995+
'rowData' => include __DIR__ . '/_files/row_data_secondary_valid.php',
996+
'errors' => []
997997
],
998998
'secondary_invalid_store' => [
999-
'$rowData' => include __DIR__ . '/_files/row_data_secondary_invalid_store.php',
1000-
'$errors' => [
999+
'rowData' => include __DIR__ . '/_files/row_data_secondary_invalid_store.php',
1000+
'errors' => [
10011001
Option::ERROR_INVALID_STORE => [1]
10021002
]
10031003
],
10041004
'secondary_incorrect_price' => [
1005-
'$rowData' => include __DIR__ . '/_files/row_data_secondary_incorrect_price.php',
1006-
'$errors' => [
1005+
'rowData' => include __DIR__ . '/_files/row_data_secondary_incorrect_price.php',
1006+
'errors' => [
10071007
Option::ERROR_INVALID_ROW_PRICE => [1]
10081008
]
10091009
],
10101010
'secondary_incorrect_row_sort' => [
1011-
'$rowData' => include __DIR__ . '/_files/row_data_secondary_incorrect_row_sort.php',
1012-
'$errors' => [
1011+
'rowData' => include __DIR__ . '/_files/row_data_secondary_incorrect_row_sort.php',
1012+
'errors' => [
10131013
Option::ERROR_INVALID_ROW_SORT => [1]
10141014
]
10151015
],
10161016
'secondary_row_sort_less_zero' => [
1017-
'$rowData' => include __DIR__ . '/_files/row_data_secondary_row_sort_less_zero.php',
1018-
'$errors' => [
1017+
'rowData' => include __DIR__ . '/_files/row_data_secondary_row_sort_less_zero.php',
1018+
'errors' => [
10191019
Option::ERROR_INVALID_ROW_SORT => [1]
10201020
]
10211021
]
@@ -1031,26 +1031,26 @@ public static function validateAmbiguousDataDataProvider(): array
10311031
{
10321032
return [
10331033
'ambiguity_several_input_rows' => [
1034-
'$rowData' => include __DIR__ . '/_files/row_data_main_valid.php',
1035-
'$errors' => [
1034+
'rowData' => include __DIR__ . '/_files/row_data_main_valid.php',
1035+
'errors' => [
10361036
Option::ERROR_AMBIGUOUS_NEW_NAMES => [2, 2]
10371037
],
1038-
'$behavior' => null,
1039-
'$numberOfValidations' => 2
1038+
'behavior' => null,
1039+
'numberOfValidations' => 2
10401040
],
10411041
'ambiguity_different_type' => [
1042-
'$rowData' => include __DIR__ . '/_files/row_data_ambiguity_different_type.php',
1043-
'$errors' => [
1042+
'rowData' => include __DIR__ . '/_files/row_data_ambiguity_different_type.php',
1043+
'errors' => [
10441044
Option::ERROR_AMBIGUOUS_TYPES => [1]
10451045
],
1046-
'$behavior' => Import::BEHAVIOR_APPEND
1046+
'behavior' => Import::BEHAVIOR_APPEND
10471047
],
10481048
'ambiguity_several_db_rows' => [
1049-
'$rowData' => include __DIR__ . '/_files/row_data_ambiguity_several_db_rows.php',
1050-
'$errors' => [
1049+
'rowData' => include __DIR__ . '/_files/row_data_ambiguity_several_db_rows.php',
1050+
'errors' => [
10511051
Option::ERROR_AMBIGUOUS_OLD_NAMES => [1]
10521052
],
1053-
'$behavior' => Import::BEHAVIOR_APPEND
1053+
'behavior' => Import::BEHAVIOR_APPEND
10541054
]
10551055
];
10561056
}

0 commit comments

Comments
 (0)