class ConfigurablePluginBaseTest
Tests ConfigurablePluginBase.
@group Plugin
@coversDefaultClass \Drupal\Core\Plugin\ConfigurablePluginBase
Hierarchy
- class \Drupal\Tests\Core\Plugin\ConfigurablePluginBaseTest extends \PHPUnit\Framework\TestCase
Expanded class hierarchy of ConfigurablePluginBaseTest
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ ConfigurablePluginBaseTest.php, line 17
Namespace
Drupal\Tests\Core\PluginView source
class ConfigurablePluginBaseTest extends TestCase {
/**
* Tests the Constructor.
*/
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());
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ConfigurablePluginBaseTest::testConstructor | public | function | Tests the Constructor. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.