public function PluginTypeTest::testGetPluginConfigurationSchemaIdWithDefinedId in Plugin 8.2
@covers ::getPluginConfigurationSchemaId
File
- tests/
src/ Unit/ PluginType/ PluginTypeTest.php, line 145
Class
- PluginTypeTest
- @coversDefaultClass \Drupal\plugin\PluginType\PluginType
Namespace
Drupal\Tests\plugin\Unit\PluginTypeCode
public function testGetPluginConfigurationSchemaIdWithDefinedId() {
$plugin_id = 'FooBarQux';
$schema_id = 'foo_bar.qux.[plugin_id]';
$this->pluginTypeDefinition['plugin_configuration_schema_id'] = $schema_id;
$this->sut = PluginType::createFromDefinition($this->container, $this->pluginTypeDefinition);
$expected_schema_id = 'foo_bar.qux.' . $plugin_id;
$this
->assertSame($expected_schema_id, $this->sut
->getPluginConfigurationSchemaId($plugin_id));
}