protected function FootnotesFilterPluginTest::setUp in Footnotes 8.2
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ FootnotesFilterPluginTest.php, line 44
Class
- FootnotesFilterPluginTest
- Contains Footnotes Filter plugin functionality tests.
Namespace
Drupal\Tests\footnotes\FunctionalCode
protected function setUp() {
parent::setUp();
// Create a filter admin user.
$permissions = [
'administer filters',
'administer nodes',
'access administration pages',
'administer site configuration',
];
$this->adminUser = $this
->drupalCreateUser($permissions);
$this->formatName = strtolower($this
->randomMachineName());
$this
->drupalLogin($this->adminUser);
$this
->createTextFormat();
$this
->drupalCreateContentType([
'type' => 'page',
]);
}