]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/CommentSettingTest.php
Fix typos
[bookstack] / tests / Entity / CommentSettingTest.php
index 5ab6ad9a81beb34f1620e019f4bfe8dbb6c56ea9..0e3199979000b899d69fc5ac7c5fb5600eb10fe0 100644 (file)
@@ -1,4 +1,6 @@
-<?php namespace Tests\Entity;
+<?php
+
+namespace Tests\Entity;
 
 use BookStack\Entities\Models\Page;
 use Tests\TestCase;
@@ -7,7 +9,7 @@ class CommentSettingTest extends TestCase
 {
     protected $page;
 
-    public function setUp(): void
+    protected function setUp(): void
     {
         parent::setUp();
         $this->page = Page::query()->first();
@@ -18,8 +20,8 @@ class CommentSettingTest extends TestCase
         $this->setSettings(['app-disable-comments' => 'true']);
         $this->asAdmin();
 
-        $this->asAdmin()->get($this->page->getUrl())
-            ->assertElementNotExists('.comments-list');
+        $resp = $this->asAdmin()->get($this->page->getUrl());
+        $this->withHtml($resp)->assertElementNotExists('.comments-list');
     }
 
     public function test_comment_enable()
@@ -27,7 +29,7 @@ class CommentSettingTest extends TestCase
         $this->setSettings(['app-disable-comments' => 'false']);
         $this->asAdmin();
 
-        $this->asAdmin()->get($this->page->getUrl())
-            ->assertElementExists('.comments-list');
+        $resp = $this->asAdmin()->get($this->page->getUrl());
+        $this->withHtml($resp)->assertElementExists('.comments-list');
     }
-}
\ No newline at end of file
+}