function ConfigurableTraitTest::testDefaultConfiguration

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Plugin/ConfigurableTraitTest.php \Drupal\Tests\Core\Plugin\ConfigurableTraitTest::testDefaultConfiguration()

Tests ConfigurableTrait::defaultConfiguration.

File

core/tests/Drupal/Tests/Core/Plugin/ConfigurableTraitTest.php, line 25

Class

ConfigurableTraitTest
Tests for ConfigurableTrait.

Namespace

Drupal\Tests\Core\Plugin

Code

public function testDefaultConfiguration() : void {
  /** @var \Drupal\Component\Plugin\ConfigurableInterface $configurable_plugin */
  $configurable_plugin = new ConfigurableTestClass();
  $this->assertSame([], $configurable_plugin->defaultConfiguration());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.