]> BookStack Code Mirror - bookstack/blobdiff - tests/ThemeTest.php
respective book and chapter structure added.
[bookstack] / tests / ThemeTest.php
index 8e12b88d85c07ebcd7b47a8ded7896a058ef1011..837b94eee72061bef6bc6c59f23d49fba5b7db2d 100644 (file)
@@ -451,6 +451,19 @@ END;
         });
     }
 
+    public function test_custom_settings_category_page_can_be_added_via_view_file()
+    {
+        $content = 'My SuperCustomSettings';
+
+        $this->usingThemeFolder(function (string $folder) use ($content) {
+            $viewDir = theme_path('settings/categories');
+            mkdir($viewDir, 0777, true);
+            file_put_contents($viewDir . '/beans.blade.php', $content);
+
+            $this->asAdmin()->get('/settings/beans')->assertSee($content);
+        });
+    }
+
     protected function usingThemeFolder(callable $callback)
     {
         // Create a folder and configure a theme