public function CorePagerReplaceCommentInterfaceTest::setUp in Pagerer 8
Same name and namespace in other branches
- 8.2 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 21
Class
- CorePagerReplaceCommentInterfaceTest
- Test replacement of Drupal core pager for Comment interface.
Namespace
Drupal\Tests\pagerer\FunctionalCode
public function setUp() {
parent::setUp();
$this
->drupalLogin($this
->drupalCreateUser([
'access site reports',
'administer site configuration',
]));
$edit = [
'label' => 'core_replace',
'id' => 'core_replace',
];
$this
->drupalPostForm($this->pagererAdmin . '/preset/add', $edit, 'Create');
$edit = [
'core_override_preset' => 'core_replace',
];
$this
->drupalPostForm($this->pagererAdmin, $edit, 'Save configuration');
$this
->drupalLogout();
}