1 <?php namespace Tests\Entity;
3 use BookStack\Entities\Models\Page;
6 class CommentSettingTest extends TestCase
10 public function setUp(): void
13 $this->page = Page::query()->first();
16 public function test_comment_disable()
18 $this->setSettings(['app-disable-comments' => 'true']);
21 $this->asAdmin()->get($this->page->getUrl())
22 ->assertElementNotExists('.comments-list');
25 public function test_comment_enable()
27 $this->setSettings(['app-disable-comments' => 'false']);
30 $this->asAdmin()->get($this->page->getUrl())
31 ->assertElementExists('.comments-list');