Skip to content

Commit 262445f

Browse files
author
dnyomo
committed
Test Fixes for the new filter that sorts categories by position
1 parent 605d847 commit 262445f

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -648,15 +648,6 @@ public function filterMultipleCategoriesDataProvider(): array
648648
'in',
649649
'["category-1-2", "movable"]',
650650
[
651-
[
652-
'id' => '7',
653-
'name' => 'Movable',
654-
'url_key' => 'movable',
655-
'url_path' => 'movable',
656-
'children_count' => '0',
657-
'path' => '1/2/7',
658-
'position' => '3'
659-
],
660651
[
661652
'id' => '13',
662653
'name' => 'Category 1.2',
@@ -665,6 +656,15 @@ public function filterMultipleCategoriesDataProvider(): array
665656
'children_count' => '0',
666657
'path' => '1/2/3/13',
667658
'position' => '2'
659+
],
660+
[
661+
'id' => '7',
662+
'name' => 'Movable',
663+
'url_key' => 'movable',
664+
'url_path' => 'movable',
665+
'children_count' => '0',
666+
'path' => '1/2/7',
667+
'position' => '3'
668668
]
669669
]
670670
],

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function testPaging()
155155
$lastPageQuery = sprintf($baseQuery, $page1Result['categories']['page_info']['total_pages']);
156156
$lastPageResult = $this->graphQlQuery($lastPageQuery);
157157
$this->assertCount(1, $lastPageResult['categories']['items']);
158-
$this->assertEquals('Category 1.2', $lastPageResult['categories']['items'][0]['name']);
158+
$this->assertEquals('Category 12', $lastPageResult['categories']['items'][0]['name']);
159159
}
160160

161161
/**

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -629,15 +629,6 @@ public function filterMultipleCategoriesDataProvider(): array
629629
'in',
630630
'["category-1-2", "movable"]',
631631
[
632-
[
633-
'id' => '7',
634-
'name' => 'Movable',
635-
'url_key' => 'movable',
636-
'url_path' => 'movable',
637-
'children_count' => '0',
638-
'path' => '1/2/7',
639-
'position' => '3'
640-
],
641632
[
642633
'id' => '13',
643634
'name' => 'Category 1.2',
@@ -646,6 +637,15 @@ public function filterMultipleCategoriesDataProvider(): array
646637
'children_count' => '0',
647638
'path' => '1/2/3/13',
648639
'position' => '2'
640+
],
641+
[
642+
'id' => '7',
643+
'name' => 'Movable',
644+
'url_key' => 'movable',
645+
'url_path' => 'movable',
646+
'children_count' => '0',
647+
'path' => '1/2/7',
648+
'position' => '3'
649649
]
650650
]
651651
],

0 commit comments

Comments
 (0)