]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/PageContentTest.php
Addressed a range of deprecation warnings
[bookstack] / tests / Entity / PageContentTest.php
index 0c9854206d12be7c9124c5057c24a2a203b8e822..53107d14d19177cc6adb6ea408cb28714e952936 100644 (file)
@@ -310,7 +310,7 @@ class PageContentTest extends TestCase
     {
         $this->asEditor();
         $page = $this->entities->page();
-        config()->push('app.allow_content_scripts', 'true');
+        config()->set('app.allow_content_scripts', 'true');
 
         $script = 'abc123<script>console.log("hello-test")</script>abc123';
         $page->html = "no escape {$script}";
@@ -355,7 +355,7 @@ class PageContentTest extends TestCase
     {
         $this->asEditor();
         $page = $this->entities->page();
-        config()->push('app.allow_content_scripts', 'true');
+        config()->set('app.allow_content_scripts', 'true');
 
         $script = '<p onmouseenter="console.log(\'test\')">Hello</p>';
         $page->html = "escape {$script}";