function EditorValidationTest::testInvalidPluginId
Tests validating an editor with an unknown plugin ID.
File
- 
              core/
modules/ editor/ tests/ src/ Kernel/ EditorValidationTest.php, line 106  
Class
- EditorValidationTest
 - Tests validation of editor entities.
 
Namespace
Drupal\Tests\editor\KernelCode
public function testInvalidPluginId() : void {
  $this->entity
    ->setEditor('non_existent');
  $this->assertValidationErrors([
    'editor' => "The 'non_existent' plugin does not exist.",
  ]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.