Skip to content

Commit 4dff7db

Browse files
committed
MC-21542: Category query does not handle disabled children properly
- add test
1 parent cfd75cc commit 4dff7db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ public function testQueryChildCategoriesWithProductsDisabled()
245245
children{
246246
name
247247
image
248+
children{
249+
name
250+
image
251+
}
248252
}
249253
}
250254
}

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ public function testCategoriesTree()
7575
children {
7676
level
7777
id
78-
children {
79-
level
80-
id
81-
}
8278
}
8379
}
8480
}

0 commit comments

Comments
 (0)