You are here

protected function AjaxCommentsSettingsFormTest::setUp in AJAX Comments 8

Overrides CommentTestBase::setUp

File

src/Tests/AjaxCommentsSettingsFormTest.php, line 36

Class

AjaxCommentsSettingsFormTest
Tests the \Drupal\ajax_comments\Form\SettingsForm.

Namespace

Drupal\ajax_comments\Tests

Code

protected function setUp() {
  parent::setUp();
  $admin_roles = $this->adminUser
    ->getRoles();
  $admin_role = Role::load(reset($admin_roles));
  $this
    ->grantPermissions($admin_role, [
    'administer site configuration',
    'administer node display',
  ]);
}