Use FunctionalTest instead of SapphireTest to disable themes.

This commit is contained in:
Raissa North 2018-03-09 16:45:38 +13:00
parent 90c42ff027
commit 8d5edc7821
1 changed files with 6 additions and 1 deletions

View File

@ -9,14 +9,17 @@ use SilverStripe\Comments\Tests\Stubs\CommentableItem;
use SilverStripe\Comments\Tests\Stubs\CommentableItemDisabled;
use SilverStripe\Comments\Tests\Stubs\CommentableItemEnabled;
use SilverStripe\Core\Config\Config;
use SilverStripe\Dev\FunctionalTest;
use SilverStripe\Dev\SapphireTest;
use SilverStripe\Security\Member;
use SilverStripe\View\Requirements;
class CommentsExtensionTest extends SapphireTest
class CommentsExtensionTest extends FunctionalTest
{
protected static $fixture_file = 'CommentsTest.yml';
protected static $disable_themes = true;
protected static $extra_dataobjects = [
CommentableItem::class,
CommentableItemEnabled::class,
@ -249,6 +252,8 @@ class CommentsExtensionTest extends SapphireTest
public function testCommentsForm()
{
$this->logInWithPermission('ADMIN');
Config::modify()->merge(CommentableItem::class, 'comments', array(
'include_js' => false,
'comments_holder_id' => 'comments-holder',