3 namespace Tests\Entity;
7 class CommentSettingTest extends TestCase
9 public function test_comment_disable()
11 $page = $this->entities->page();
12 $this->setSettings(['app-disable-comments' => 'true']);
15 $resp = $this->asAdmin()->get($page->getUrl());
16 $this->withHtml($resp)->assertElementNotExists('.comments-list');
19 public function test_comment_enable()
21 $page = $this->entities->page();
22 $this->setSettings(['app-disable-comments' => 'false']);
25 $resp = $this->asAdmin()->get($page->getUrl());
26 $this->withHtml($resp)->assertElementExists('.comments-list');