function ConfigurablePluginBaseTest::testConstructor
Tests the Constructor.
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ ConfigurablePluginBaseTest.php, line 22
Class
- ConfigurablePluginBaseTest
- Tests ConfigurablePluginBase.
Namespace
Drupal\Tests\Core\PluginCode
public function testConstructor() : void {
$provided_configuration = [
'foo' => 'bar',
];
$merged_configuration = [
'default' => 'default',
] + $provided_configuration;
$plugin = new ConfigurablePluginBaseTestClass($provided_configuration, '', []);
$this->assertSame($merged_configuration, $plugin->getConfiguration());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.