function CommentAdminTest::setUp

Overrides CommentTestBase::setUp

File

core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php, line 30

Class

CommentAdminTest
Tests comment approval functionality.

Namespace

Drupal\Tests\comment\Functional\Views

Code

protected function setUp() : void {
  parent::setUp();
  \Drupal::service('module_installer')->install([
    'views',
  ]);
  $view = Views::getView('comment');
  $view->storage
    ->enable()
    ->save();
  \Drupal::service('router.builder')->rebuildIfNeeded();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.