diff --git a/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php b/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php index c49cf7814039694c4c0762bf1c48d150396118d2..d4c13724e0fbb74071cf36e0aecf65b9fe34d939 100644 --- a/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php +++ b/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php @@ -25,6 +25,13 @@ class CKEditorAdminTest extends WebTestBase { */ public static $modules = array('filter', 'editor', 'ckeditor'); + /** + * A user with the 'administer filters' permission. + * + * @var \Drupal\user\UserInterface + */ + protected $adminUser; + protected function setUp() { parent::setUp(); @@ -38,7 +45,7 @@ protected function setUp() { $filtered_html_format->save(); // Create admin user. - $this->admin_user = $this->drupalCreateUser(array('administer filters')); + $this->adminUser = $this->drupalCreateUser(array('administer filters')); } /** @@ -47,7 +54,7 @@ protected function setUp() { function testExistingFormat() { $ckeditor = $this->container->get('plugin.manager.editor')->createInstance('ckeditor'); - $this->drupalLogin($this->admin_user); + $this->drupalLogin($this->adminUser); $this->drupalGet('admin/config/content/formats/manage/filtered_html'); // Ensure no Editor config entity exists yet. @@ -192,7 +199,7 @@ function testExistingFormat() { * configuration form work; details are tested in testExistingFormat(). */ function testNewFormat() { - $this->drupalLogin($this->admin_user); + $this->drupalLogin($this->adminUser); $this->drupalGet('admin/config/content/formats/add'); // Verify the "Text Editor"