function AjaxCssTest::setUp
Same name in other branches
- 9 core/modules/ckeditor/tests/src/FunctionalJavascript/AjaxCssTest.php \Drupal\Tests\ckeditor\FunctionalJavascript\AjaxCssTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ AjaxCssTest.php, line 29
Class
- AjaxCssTest
- Tests delivery of CSS to CKEditor via AJAX.
Namespace
Drupal\Tests\ckeditor\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
FilterFormat::create([
'format' => 'test_format',
'name' => $this->randomMachineName(),
])
->save();
Editor::create([
'editor' => 'ckeditor',
'format' => 'test_format',
])->save();
user_role_grant_permissions('anonymous', [
'use text format test_format',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.