mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-01-13 05:42:30 +03:00
Includes major version change of antonioribeiro/google2fa which changes secret length. From manual testing of old MFA secrets and new, this should not be breaking at all.
29 lines
733 B
PHP
29 lines
733 B
PHP
<?php
|
|
|
|
namespace Tests\Activity;
|
|
|
|
use Tests\TestCase;
|
|
|
|
class CommentSettingTest extends TestCase
|
|
{
|
|
public function test_comment_disable()
|
|
{
|
|
$page = $this->entities->page();
|
|
$this->setSettings(['app-disable-comments' => 'true']);
|
|
$this->asAdmin();
|
|
|
|
$resp = $this->asAdmin()->get($page->getUrl());
|
|
$this->withHtml($resp)->assertElementNotExists('.comments-list');
|
|
}
|
|
|
|
public function test_comment_enable()
|
|
{
|
|
$page = $this->entities->page();
|
|
$this->setSettings(['app-disable-comments' => 'false']);
|
|
$this->asAdmin();
|
|
|
|
$resp = $this->asAdmin()->get($page->getUrl());
|
|
$this->withHtml($resp)->assertElementExists('.comments-list');
|
|
}
|
|
}
|