You are here

class ConfigurablePluginInterfaceTest in Drupal 8

Tests ConfigurablePluginInterface deprecation.

@group legacy @group plugin

Hierarchy

Expanded class hierarchy of ConfigurablePluginInterfaceTest

File

core/tests/Drupal/Tests/Component/Plugin/ConfigurablePluginInterfaceTest.php, line 15

Namespace

Drupal\Tests\Component\Plugin
View source
class ConfigurablePluginInterfaceTest extends TestCase {

  /**
   * Tests the deprecation error is thrown.
   *
   * @expectedDeprecation Drupal\Component\Plugin\ConfigurablePluginInterface is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. You should implement ConfigurableInterface and/or DependentPluginInterface directly as needed. If you implement ConfigurableInterface you may choose to implement ConfigurablePluginInterface in Drupal 8 as well for maximum compatibility, however this must be removed prior to Drupal 9. See https://www.drupal.org/node/2946161
   */
  public function testDeprecation() {
    new ConfigurablePluginInterfaceTestClass([], '', []);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigurablePluginInterfaceTest::testDeprecation public function Tests the deprecation error is thrown.