CorePagerReplaceCommentInterfaceTest.php in Pagerer 8
File
tests/src/Functional/CorePagerReplaceCommentInterfaceTest.php
View source
<?php
namespace Drupal\Tests\pagerer\Functional;
use Drupal\Tests\comment\Functional\CommentInterfaceTest;
class CorePagerReplaceCommentInterfaceTest extends CommentInterfaceTest {
protected $pagererAdmin = 'admin/config/user-interface/pagerer';
public static $modules = [
'dblog',
'pagerer',
'comment',
];
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();
}
}