Skip to content

Commit ca7fad5

Browse files
committed
Resolving deprecations
1 parent 293d9b8 commit ca7fad5

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

dev/tests/integration/testsuite/Magento/LayeredNavigation/Block/Navigation/Category/Bundle/MultiselectFilterTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,27 +60,27 @@ public static function getFiltersWithCustomAttributeDataProvider(): array
6060
{
6161
return [
6262
'not_used_in_navigation' => [
63-
'products_data' => [],
64-
'attribute_data' => ['is_filterable' => 0],
63+
'products' => [],
64+
'attributeData' => ['is_filterable' => 0],
6565
'expectation' => [],
6666
],
6767
'used_in_navigation_with_results' => [
68-
'products_data' => [
68+
'products' => [
6969
'bundle-product' => 'Option 1',
7070
'bundle-product-dropdown-options' => 'Option 2',
7171
],
72-
'attribute_data' => ['is_filterable' => AbstractFilter::ATTRIBUTE_OPTIONS_ONLY_WITH_RESULTS],
72+
'attributeData' => ['is_filterable' => AbstractFilter::ATTRIBUTE_OPTIONS_ONLY_WITH_RESULTS],
7373
'expectation' => [
7474
['label' => 'Option 1', 'count' => 1],
7575
['label' => 'Option 2', 'count' => 1],
7676
],
7777
],
7878
'used_in_navigation_without_results' => [
79-
'products_data' => [
79+
'products' => [
8080
'bundle-product' => 'Option 1',
8181
'bundle-product-dropdown-options' => 'Option 2',
8282
],
83-
'attribute_data' => ['is_filterable' => 2],
83+
'attributeData' => ['is_filterable' => 2],
8484
'expectation' => [
8585
['label' => 'Option 1', 'count' => 1],
8686
['label' => 'Option 2', 'count' => 1],

dev/tests/integration/testsuite/Magento/LayeredNavigation/Block/Navigation/Category/Bundle/SelectFilterTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,27 +60,27 @@ public static function getFiltersWithCustomAttributeDataProvider(): array
6060
{
6161
return [
6262
'not_used_in_navigation' => [
63-
'products_data' => [],
64-
'attribute_data' => ['is_filterable' => 0],
63+
'products' => [],
64+
'attributeData' => ['is_filterable' => 0],
6565
'expectation' => [],
6666
],
6767
'used_in_navigation_with_results' => [
68-
'products_data' => [
68+
'products' => [
6969
'bundle-product' => 'Option 1',
7070
'bundle-product-dropdown-options' => 'Option 2',
7171
],
72-
'attribute_data' => ['is_filterable' => AbstractFilter::ATTRIBUTE_OPTIONS_ONLY_WITH_RESULTS],
72+
'attributeData' => ['is_filterable' => AbstractFilter::ATTRIBUTE_OPTIONS_ONLY_WITH_RESULTS],
7373
'expectation' => [
7474
['label' => 'Option 1', 'count' => 1],
7575
['label' => 'Option 2', 'count' => 1],
7676
],
7777
],
7878
'used_in_navigation_without_results' => [
79-
'products_data' => [
79+
'products' => [
8080
'bundle-product' => 'Option 1',
8181
'bundle-product-dropdown-options' => 'Option 2',
8282
],
83-
'attribute_data' => ['is_filterable' => 2],
83+
'attributeData' => ['is_filterable' => 2],
8484
'expectation' => [
8585
['label' => 'Option 1', 'count' => 1],
8686
['label' => 'Option 2', 'count' => 1],

dev/tests/integration/testsuite/Magento/LayeredNavigation/Block/Navigation/Category/Configurable/PriceFilterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static function getFiltersDataProvider(): array
6565
{
6666
return [
6767
'all_children_active' => [
68-
'products_data' => [
68+
'products' => [
6969
'simple333' => ['price' => 60.00],
7070
],
7171
'expectation' => [
@@ -82,7 +82,7 @@ public static function getFiltersDataProvider(): array
8282
],
8383
],
8484
'one_child_disabled' => [
85-
'products_data' => [
85+
'products' => [
8686
'simple333' => ['price' => 50.00],
8787
'simple_10' => ['status' => Status::STATUS_DISABLED],
8888
],

dev/tests/integration/testsuite/Magento/LayeredNavigation/Block/Navigation/Search/MultiselectFilterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ public static function getFiltersWithCustomAttributeDataProvider(): array
4848
$dataProvider,
4949
[
5050
'not_used_in_navigation' => [
51-
'attribute_data' => [
51+
'attributeData' => [
5252
'is_filterable_in_search' => 0,
5353
],
5454
],
5555
'used_in_navigation_with_results' => [
56-
'attribute_data' => [
56+
'attributeData' => [
5757
'is_filterable' => AbstractFilter::ATTRIBUTE_OPTIONS_ONLY_WITH_RESULTS,
5858
'is_filterable_in_search' => 1,
5959
],
6060
],
6161
'used_in_navigation_without_results' => [
62-
'attribute_data' => [
62+
'attributeData' => [
6363
'is_filterable' => 0,
6464
'is_filterable_in_search' => 1,
6565
],

dev/tests/integration/testsuite/Magento/LayeredNavigation/Block/Navigation/Search/SelectFilterTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,26 @@ public function testGetFiltersWithCustomAttribute(
4040
/**
4141
* @return array
4242
*/
43-
public function getFiltersWithCustomAttributeDataProvider(): array
43+
public static function getFiltersWithCustomAttributeDataProvider(): array
4444
{
4545
$dataProvider = parent::getFiltersWithCustomAttributeDataProvider();
4646

4747
$dataProvider = array_replace_recursive(
4848
$dataProvider,
4949
[
5050
'not_used_in_navigation' => [
51-
'attribute_data' => [
51+
'attributeData' => [
5252
'is_filterable_in_search' => 0,
5353
],
5454
],
5555
'used_in_navigation_with_results' => [
56-
'attribute_data' => [
56+
'attributeData' => [
5757
'is_filterable' => AbstractFilter::ATTRIBUTE_OPTIONS_ONLY_WITH_RESULTS,
5858
'is_filterable_in_search' => 1,
5959
],
6060
],
6161
'used_in_navigation_without_results' => [
62-
'attribute_data' => [
62+
'attributeData' => [
6363
'is_filterable' => 0,
6464
'is_filterable_in_search' => 1,
6565
],

0 commit comments

Comments
 (0)