function RestResourceConfigValidationTest::testInvalidPluginId
Tests that the resource plugin ID is validated.
File
- 
              core/modules/ rest/ tests/ src/ Kernel/ Entity/ RestResourceConfigValidationTest.php, line 47 
Class
- RestResourceConfigValidationTest
- Tests validation of rest_resource_config entities.
Namespace
Drupal\Tests\rest\Kernel\EntityCode
public function testInvalidPluginId() : void {
  $this->entity
    ->set('plugin_id', 'non_existent');
  $this->assertValidationErrors([
    'plugin_id' => "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.
