protected function PerCommentTypeSettingsTest::setUp in Simplify 8
Overrides BrowserTestBase::setUp
File
- src/
Tests/ PerCommentTypeSettingsTest.php, line 46
Class
- PerCommentTypeSettingsTest
- Test simplify per comment-type settings.
Namespace
Drupal\simplify\TestsCode
protected function setUp() {
parent::setUp();
// Create two test users.
$this->adminUser = $this
->drupalCreateUser([
'administer content types',
'administer comments',
'administer comment types',
'administer comment fields',
'administer comment display',
'administer simplify',
'skip comment approval',
'post comments',
'access comments',
'access content',
]);
$this
->drupalLogin($this->adminUser);
// Create a content type.
$this
->drupalCreateContentType([
'type' => 'content_type',
'name' => 'Testing content type',
]);
// Create comment field on $content_type bundle.
$this
->addDefaultCommentField('node', 'content_type');
}