@@ -146,7 +146,7 @@ public function testGetPriority()
146146 public function testGetGroup ()
147147 {
148148 $ navItem = new NavItem (new Route (new InMemoryPage ('foo ' )), 'Page ' , 500 );
149- $ this ->assertNull ($ navItem ->getGroup ());
149+ $ this ->assertNull ($ navItem ->getGroupIdentifier ());
150150 }
151151
152152 public function testGetChildren ()
@@ -325,28 +325,28 @@ public function testIsCurrentWithExternalRoute()
325325
326326 public function testGetGroupWithNoGroup ()
327327 {
328- $ this ->assertNull ((new NavItem (new Route (new MarkdownPage ()), 'Test ' , 500 ))->getGroup ());
328+ $ this ->assertNull ((new NavItem (new Route (new MarkdownPage ()), 'Test ' , 500 ))->getGroupIdentifier ());
329329 }
330330
331331 public function testGetGroupWithGroup ()
332332 {
333- $ this ->assertSame ('foo ' , (new NavItem (new Route (new MarkdownPage ()), 'Test ' , 500 , 'foo ' ))->getGroup ());
333+ $ this ->assertSame ('foo ' , (new NavItem (new Route (new MarkdownPage ()), 'Test ' , 500 , 'foo ' ))->getGroupIdentifier ());
334334 }
335335
336336 public function testGetGroupFromRouteWithGroup ()
337337 {
338- $ this ->assertSame ('foo ' , NavItem::forRoute (new Route (new MarkdownPage (matter: ['navigation.group ' => 'foo ' ])))->getGroup ());
338+ $ this ->assertSame ('foo ' , NavItem::forRoute (new Route (new MarkdownPage (matter: ['navigation.group ' => 'foo ' ])))->getGroupIdentifier ());
339339 }
340340
341341 public function testGetGroupForRouteWithGroup ()
342342 {
343- $ this ->assertSame ('foo ' , NavItem::forRoute (new Route (new MarkdownPage (matter: ['navigation.group ' => 'foo ' ])), 'foo ' )->getGroup ());
343+ $ this ->assertSame ('foo ' , NavItem::forRoute (new Route (new MarkdownPage (matter: ['navigation.group ' => 'foo ' ])), 'foo ' )->getGroupIdentifier ());
344344 }
345345
346346 public function testGroupKeysAreNormalized ()
347347 {
348348 $ item = new NavItem (new Route (new MarkdownPage ()), 'Test ' , 500 , 'Foo Bar ' );
349- $ this ->assertSame ('foo-bar ' , $ item ->getGroup ());
349+ $ this ->assertSame ('foo-bar ' , $ item ->getGroupIdentifier ());
350350 }
351351
352352 public function testIdentifier ()
@@ -434,8 +434,8 @@ public function testAddingAnItemWithAGroupKeyKeepsTheSetGroupKey()
434434
435435 $ parent ->addChild ($ child );
436436
437- $ this ->assertSame ('foo ' , $ parent ->getGroup ());
438- $ this ->assertSame ('bar ' , $ child ->getGroup ());
437+ $ this ->assertSame ('foo ' , $ parent ->getGroupIdentifier ());
438+ $ this ->assertSame ('bar ' , $ child ->getGroupIdentifier ());
439439 }
440440
441441 public function testAddingAnItemWithNoGroupKeyUsesParentIdentifier ()
@@ -445,7 +445,7 @@ public function testAddingAnItemWithNoGroupKeyUsesParentIdentifier()
445445
446446 $ parent ->addChild ($ child );
447447
448- $ this ->assertSame ('foo ' , $ parent ->getGroup ());
449- $ this ->assertSame ('foo ' , $ child ->getGroup ());
448+ $ this ->assertSame ('foo ' , $ parent ->getGroupIdentifier ());
449+ $ this ->assertSame ('foo ' , $ child ->getGroupIdentifier ());
450450 }
451451}
0 commit comments