You are here

public function CorePagerReplaceCommentInterfaceTest::setUp in Pagerer 8.2

Same name and namespace in other branches
  1. 8 tests/src/Functional/CorePagerReplaceCommentInterfaceTest.php \Drupal\Tests\pagerer\Functional\CorePagerReplaceCommentInterfaceTest::setUp()

Set up comments to have subject and preview disabled.

Overrides CommentInterfaceTest::setUp

File

tests/src/Functional/CorePagerReplaceCommentInterfaceTest.php, line 29

Class

CorePagerReplaceCommentInterfaceTest
Test replacement of Drupal core pager for Comment interface.

Namespace

Drupal\Tests\pagerer\Functional

Code

public function setUp() : void {
  parent::setUp();
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'access site reports',
    'administer site configuration',
  ]));

  // Replace the core pager.
  $this
    ->drupalGet($this->pagererAdmin . '/preset/add');
  $this
    ->submitForm([
    'label' => 'core_replace',
    'id' => 'core_replace',
  ], 'Create');
  $this
    ->drupalGet($this->pagererAdmin);
  $this
    ->submitForm([
    'core_override_preset' => 'core_replace',
  ], 'Save configuration');
  $this
    ->drupalLogout();
}