File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
packages/framework/tests/Feature Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,26 @@ public function testToArrayMethodContainsAllSettings()
7777 ], (new Features )->toArray ());
7878 }
7979
80+ public function testToArrayMethodContainsAllSettingsIncludingFalseValues ()
81+ {
82+ config (['hyde.features ' => [
83+ Features::htmlPages (),
84+ Features::markdownPosts (),
85+ Features::bladePages (),
86+ ]]);
87+
88+ $ this ->assertSame ([
89+ 'html-pages ' => true ,
90+ 'markdown-posts ' => true ,
91+ 'blade-pages ' => true ,
92+ 'markdown-pages ' => false ,
93+ 'documentation-pages ' => false ,
94+ 'darkmode ' => false ,
95+ 'documentation-search ' => false ,
96+ 'torchlight ' => false ,
97+ ], (new Features )->toArray ());
98+ }
99+
80100 public function testFeaturesCanBeMocked ()
81101 {
82102 Features::mock ('darkmode ' , true );
You can’t perform that action at this time.
0 commit comments