class ConfigurablePluginBaseTest

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Plugin/ConfigurablePluginBaseTest.php \Drupal\Tests\Core\Plugin\ConfigurablePluginBaseTest

Tests ConfigurablePluginBase.

Attributes

#[CoversClass(ConfigurablePluginBase::class)] #[Group('Plugin')]

Hierarchy

Expanded class hierarchy of ConfigurablePluginBaseTest

File

core/tests/Drupal/Tests/Core/Plugin/ConfigurablePluginBaseTest.php, line 15

Namespace

Drupal\Tests\Core\Plugin
View 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.