X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b9a58859a4ef14b7971ca7d07318e1ac6f276b40..refs/pull/3349/head:/tests/Settings/CustomHeadContentTest.php diff --git a/tests/Settings/CustomHeadContentTest.php b/tests/Settings/CustomHeadContentTest.php index 36c8a4c0f..eeeab3f45 100644 --- a/tests/Settings/CustomHeadContentTest.php +++ b/tests/Settings/CustomHeadContentTest.php @@ -14,6 +14,15 @@ class CustomHeadContentTest extends TestCase $resp->assertSee('console.log("cat")', false); } + public function test_content_wrapped_in_specific_html_comments() + { + // These comments are used to identify head content for editor injection + $this->setSettings(['app-custom-head' => '']); + $resp = $this->get('/login'); + $resp->assertSee('', false); + $resp->assertSee('', false); + } + public function test_configured_content_does_not_show_on_settings_page() { $this->setSettings(['app-custom-head' => '']);