X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/c429cf78187e80deb63982a282a1c6889f30291a..refs/pull/3593/head:/tests/Entity/CommentSettingTest.php diff --git a/tests/Entity/CommentSettingTest.php b/tests/Entity/CommentSettingTest.php index d8caa7358..0e3199979 100644 --- a/tests/Entity/CommentSettingTest.php +++ b/tests/Entity/CommentSettingTest.php @@ -9,7 +9,7 @@ class CommentSettingTest extends TestCase { protected $page; - public function setUp(): void + protected function setUp(): void { parent::setUp(); $this->page = Page::query()->first(); @@ -20,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() @@ -29,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'); } }