function ConfigurableTraitTest::testGetConfiguration
Tests ConfigurableTrait::getConfiguration.
@covers ::getConfiguration
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ ConfigurableTraitTest.php, line 37
Class
- ConfigurableTraitTest
- Tests for ConfigurableTrait.
Namespace
Drupal\Tests\Core\PluginCode
public function testGetConfiguration() : void {
$test_configuration = [
'config_key_1' => 'config_value_1',
'config_key_2' => [
'nested_key_1' => 'nested_value_1',
'nested_key_2' => 'nested_value_2',
],
];
$configurable_plugin = new ConfigurableTestClass($test_configuration);
$this->assertSame($test_configuration, $configurable_plugin->getConfiguration());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.