@@ -745,17 +745,15 @@ public function testSidebarWithFrontMatterGroupAndCategory()
745745
746746 public function testSidebarWithConfigOrder ()
747747 {
748- // TODO should be sidebar.order instead of docs.sidebar_order
749-
750- config (['docs.sidebar_order ' => ['first ' , 'second ' , 'third ' ]]);
748+ config (['docs.sidebar.order ' => ['first ' , 'second ' , 'third ' ]]);
751749
752750 $ this ->assertSidebarEquals (['First ' , 'Second ' , 'Third ' ], [
753751 new DocumentationPage ('first ' ),
754752 new DocumentationPage ('second ' ),
755753 new DocumentationPage ('third ' ),
756754 ]);
757755
758- config (['docs.sidebar_order ' => ['third ' , 'second ' , 'first ' ]]);
756+ config (['docs.sidebar.order ' => ['third ' , 'second ' , 'first ' ]]);
759757
760758 $ this ->assertSidebarEquals (['Third ' , 'Second ' , 'First ' ], [
761759 new DocumentationPage ('first ' ),
@@ -776,7 +774,7 @@ public function testSidebarWithConfigOrderHasInferredPriorities()
776774 new DocumentationPage ('third ' ),
777775 ]);
778776
779- config (['docs.sidebar_order ' => ['first ' , 'second ' , 'third ' ]]);
777+ config (['docs.sidebar.order ' => ['first ' , 'second ' , 'third ' ]]);
780778
781779 $ this ->assertSidebarEquals ([
782780 ['priority ' => 500 ],
@@ -791,23 +789,23 @@ public function testSidebarWithConfigOrderHasInferredPriorities()
791789
792790 public function testSidebarWithExplicitConfigOrder ()
793791 {
794- config (['docs.sidebar_order ' => ['first ' => 1 , 'second ' => 2 , 'third ' => 3 ]]);
792+ config (['docs.sidebar.order ' => ['first ' => 1 , 'second ' => 2 , 'third ' => 3 ]]);
795793
796794 $ this ->assertSidebarEquals (['First ' , 'Second ' , 'Third ' ], [
797795 new DocumentationPage ('first ' ),
798796 new DocumentationPage ('second ' ),
799797 new DocumentationPage ('third ' ),
800798 ]);
801799
802- config (['docs.sidebar_order ' => ['first ' => 3 , 'second ' => 2 , 'third ' => 1 ]]);
800+ config (['docs.sidebar.order ' => ['first ' => 3 , 'second ' => 2 , 'third ' => 1 ]]);
803801
804802 $ this ->assertSidebarEquals (['Third ' , 'Second ' , 'First ' ], [
805803 new DocumentationPage ('first ' ),
806804 new DocumentationPage ('second ' ),
807805 new DocumentationPage ('third ' ),
808806 ]);
809807
810- config (['docs.sidebar_order ' => ['first ' => 1 , 'second ' => 2 , 'third ' => 3 ]]);
808+ config (['docs.sidebar.order ' => ['first ' => 1 , 'second ' => 2 , 'third ' => 3 ]]);
811809
812810 $ this ->assertSidebarEquals ([
813811 ['label ' => 'First ' , 'priority ' => 1 ],
@@ -822,7 +820,7 @@ public function testSidebarWithExplicitConfigOrder()
822820
823821 public function testSidebarWithMixedConfigOrders ()
824822 {
825- config (['docs.sidebar_order ' => ['foo ' , 'bar ' => 650 ]]);
823+ config (['docs.sidebar.order ' => ['foo ' , 'bar ' => 650 ]]);
826824
827825 $ this ->assertSidebarEquals ([
828826 ['label ' => 'Foo ' , 'priority ' => 500 ],
@@ -1059,7 +1057,7 @@ public function testSidebarGroupsAreSortedByLowestFoundPriorityInEachGroupUnless
10591057 new DocumentationPage ('baz ' , ['navigation.group ' => 'c ' , 'navigation.priority ' => 10 ]),
10601058 ]);
10611059
1062- config (['docs.sidebar_order ' => ['a ' => 5 ]]);
1060+ config (['docs.sidebar.order ' => ['a ' => 5 ]]);
10631061
10641062 $ this ->assertSidebarEquals ([
10651063 'A ' , 'C ' , 'B ' ,
@@ -1117,7 +1115,7 @@ public function testMainNavigationDropdownPriorityCanBeSetInConfigUsingDiffering
11171115
11181116 public function testSidebarGroupPriorityCanBeSetInConfig ()
11191117 {
1120- config (['docs.sidebar_order ' => ['foo ' => 500 ]]);
1118+ config (['docs.sidebar.order ' => ['foo ' => 500 ]]);
11211119
11221120 $ this ->assertSidebarEquals (
11231121 [['label ' => 'Foo ' , 'priority ' => 500 ]],
@@ -1127,7 +1125,7 @@ public function testSidebarGroupPriorityCanBeSetInConfig()
11271125
11281126 public function testSidebarGroupPriorityCanBeSetInConfigUsingDifferingCases ()
11291127 {
1130- config (['docs.sidebar_order ' => ['hello-world ' => 500 ]]);
1128+ config (['docs.sidebar.order ' => ['hello-world ' => 500 ]]);
11311129
11321130 $ expected = [['label ' => 'Hello World ' , 'priority ' => 500 ]];
11331131 $ this ->assertSidebarEquals ($ expected , [new DocumentationPage ('Hello World/bar ' )]);
0 commit comments