]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/PageContentTest.php
Merge pull request #3986 from BookStackApp/permission_testing
[bookstack] / tests / Entity / PageContentTest.php
index e24ee4fb5fa9cdd057ecb011680b6fe6c6dad311..e8838ae0bb0198b6da7cfe655644a3c33e42ee11 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}";