class ConfigurablePluginInterfaceTest
Tests ConfigurablePluginInterface deprecation.
@group legacy @group plugin
Hierarchy
- class \Drupal\Tests\Component\Plugin\ConfigurablePluginInterfaceTest extends \PHPUnit\Framework\TestCase
Expanded class hierarchy of ConfigurablePluginInterfaceTest
File
-
core/
tests/ Drupal/ Tests/ Component/ Plugin/ ConfigurablePluginInterfaceTest.php, line 15
Namespace
Drupal\Tests\Component\PluginView 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
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ConfigurablePluginInterfaceTest::testDeprecation | public | function | Tests the deprecation error is thrown. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.