]> BookStack Code Mirror - bookstack/blobdiff - tests/ThemeTest.php
HTML: Aligned and standardised DOMDocument usage
[bookstack] / tests / ThemeTest.php
index f0266cd0c1349420fdd4c07724b68d9b77b7ef56..53361e35194dad7b8fdec639373cc1a673bdfdd4 100644 (file)
@@ -366,6 +366,20 @@ class ThemeTest extends TestCase
         });
     }
 
+    public function test_header_links_start_template_file_can_be_used()
+    {
+        $content = 'This is added text in the header bar';
+
+        $this->usingThemeFolder(function (string $folder) use ($content) {
+            $viewDir = theme_path('layouts/parts');
+            mkdir($viewDir, 0777, true);
+            file_put_contents($viewDir . '/header-links-start.blade.php', $content);
+            $this->setSettings(['registration-enabled' => 'true']);
+
+            $this->get('/login')->assertSee($content);
+        });
+    }
+
     protected function usingThemeFolder(callable $callback)
     {
         // Create a folder and configure a theme