1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Merge branch 'disable-comments' of git://github.com/Abijeet/BookStack into Abijeet-disable-comments

This commit is contained in:
Dan Brown
2017-12-07 19:15:26 +00:00
15 changed files with 69 additions and 9 deletions

View File

@@ -0,0 +1,28 @@
<?php namespace Tests;
class CommentSettingTest extends BrowserKitTest {
protected $page;
public function setUp() {
parent::setUp();
$this->page = \BookStack\Page::first();
}
public function test_comment_disable () {
$this->asAdmin();
$this->setSettings(['app-disable-comments' => 'true']);
$this->asAdmin()->visit($this->page->getUrl())
->pageNotHasElement('.comments-list');
}
public function test_comment_enable () {
$this->asAdmin();
$this->setSettings(['app-disable-comments' => 'false']);
$this->asAdmin()->visit($this->page->getUrl())
->pageHasElement('.comments-list');
}
}