@@ -284,7 +284,10 @@ public function testMainNavigationMenuWithFrontMatterGroupAndCategory()
284284 {
285285 // Since the main key in the navigation schema is 'group', that takes precedence over its 'category' alias
286286
287- $ this ->assertMenuEquals (array_fill (0 , 3 , ['group ' => 'group-1 ' ]), [
287+ $ this ->assertMenuEquals ([[
288+ 'label ' => 'Group 1 ' ,
289+ 'children ' => ['Foo ' , 'Bar ' , 'Baz ' ],
290+ ]], [
288291 new MarkdownPage ('foo ' , ['navigation.group ' => 'Group 1 ' , 'navigation.category ' => 'Group 2 ' ]),
289292 new MarkdownPage ('bar ' , ['navigation.group ' => 'Group 1 ' , 'navigation.category ' => 'Group 2 ' ]),
290293 new MarkdownPage ('baz ' , ['navigation.group ' => 'Group 1 ' , 'navigation.category ' => 'Group 2 ' ]),
@@ -486,8 +489,8 @@ public function testMainNavigationMenuItemsWithTheSameLabelAreNotFilteredForDupl
486489 public function testMainNavigationMenuItemsWithSameLabelButDifferentGroupsAreNotFiltered ()
487490 {
488491 $ this ->assertMenuEquals ([
489- ['label ' => 'Foo ' , 'group ' => ' group-1 ' ],
490- ['label ' => 'Foo ' , 'group ' => ' group-2 ' ],
492+ ['label ' => 'Group 1 ' , 'children ' => [ ' Foo ' ] ],
493+ ['label ' => 'Group 2 ' , 'children ' => [ ' Foo ' ] ],
491494 ], [
492495 new MarkdownPage ('foo ' , ['navigation.label ' => 'Foo ' , 'navigation.group ' => 'Group 1 ' ]),
493496 new MarkdownPage ('bar ' , ['navigation.label ' => 'Foo ' , 'navigation.group ' => 'Group 2 ' ]),
0 commit comments