File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
resources/views/components/docs Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 22 <strong class =" px-2" >
33 @if (DocumentationPage:: home () )
44 <a href =" {{ DocumentationPage:: home () } }" >
5- {{ config ( ' docs.sidebar.header ' , ' Documentation ' ) } }
5+ {{ $sidebar -> getHeader ( ) } }
66 </a >
77 @else
8- {{ config ( ' docs. sidebar.header ' , ' Documentation ' ) } }
8+ {{ $ sidebar-> getHeader ( ) } }
99 @endif
1010 </strong >
1111 <x-hyde::navigation .theme-toggle-button class =" opacity-75 hover:opacity-100" />
Original file line number Diff line number Diff line change 99use Hyde \Foundation \HydeKernel ;
1010use Hyde \Testing \TestsBladeViews ;
1111use Hyde \Pages \DocumentationPage ;
12+ use Hyde \Framework \Features \Navigation \DocumentationSidebar ;
1213
1314class SidebarBrandViewTest extends TestCase
1415{
@@ -68,4 +69,11 @@ public function testSidebarBrandViewWithoutDarkmodeFeature()
6869 $ view ->assertSee ('HydePHP Docs ' );
6970 $ view ->assertDontSee ('theme-toggle-button ' );
7071 }
72+
73+ protected function testViewData (): array
74+ {
75+ return [
76+ 'sidebar ' => new DocumentationSidebar (),
77+ ];
78+ }
7179}
You can’t perform that action at this time.
0 commit comments