diff --git a/core/modules/system/src/Tests/Plugin/Discovery/AnnotatedClassDiscoveryTest.php b/core/modules/system/src/Tests/Plugin/Discovery/AnnotatedClassDiscoveryTest.php index 101dee6..008ce66 100644 --- a/core/modules/system/src/Tests/Plugin/Discovery/AnnotatedClassDiscoveryTest.php +++ b/core/modules/system/src/Tests/Plugin/Discovery/AnnotatedClassDiscoveryTest.php @@ -45,7 +45,7 @@ protected function setUp() { ), 'kale' => array( 'id' => 'kale', - 'label' => 'Kale', + 'label' => 'Raspberry', 'color' => 'green', 'class' => 'Drupal\plugin_test\Plugin\plugin_test\fruit\Kale', 'provider' => 'plugin_test', diff --git a/core/modules/system/src/Tests/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php b/core/modules/system/src/Tests/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php index 92a73f3..cef6b57 100644 --- a/core/modules/system/src/Tests/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php +++ b/core/modules/system/src/Tests/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php @@ -59,7 +59,7 @@ protected function setUp() { ), 'kale' => array( 'id' => 'kale', - 'label' => 'Kale', + 'label' => 'Raspberry', 'color' => 'green', 'class' => 'Drupal\plugin_test\Plugin\plugin_test\fruit\Kale', 'provider' => 'plugin_test', diff --git a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Kale.php b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Kale.php index 9c69b15..cfdbdd4 100644 --- a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Kale.php +++ b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Kale.php @@ -2,16 +2,16 @@ /** * @file - * Contains \Drupal\plugin_test\Plugin\plugin_test\fruit\Kale. + * Contains \Drupal\plugin_test\Plugin\plugin_test\fruit\Raspberry. */ namespace Drupal\plugin_test\Plugin\plugin_test\fruit; /** * @Plugin( - * id = "kale", - * label = "Kale", - * color = "green" + * id = "raspberry", + * label = "Raspberry", + * color = "red" * ) */ -class Kale {} +class Raspberry {} diff --git a/core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php b/core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php index 4b3652c..4ac8487 100644 --- a/core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php @@ -230,7 +230,7 @@ public function testGetDefinitionsWithJustValidInterfaces() { * @covers ::enforcePluginInterface * * @expectedException \Drupal\Component\Plugin\Exception\PluginException - * @expectedExceptionMessage Plugin "kale" (Drupal\plugin_test\Plugin\plugin_test\fruit\Kale) in plugin_test should implement interface \Drupal\plugin_test\Plugin\plugin_test\fruit\FruitInterface + * @expectedExceptionMessage Plugin "kale" (Drupal\plugin_test\Plugin\plugin_test\fruit\Raspberry) in plugin_test should implement interface \Drupal\plugin_test\Plugin\plugin_test\fruit\FruitInterface */ public function testGetDefinitionsWithInvalidInterfaces() { $module_handler = $this->getMock('Drupal\Core\Extension\ModuleHandlerInterface'); @@ -242,7 +242,7 @@ public function testGetDefinitionsWithInvalidInterfaces() { $this->expectedDefinitions['kale'] = array( 'id' => 'kale', - 'label' => 'Kale', + 'label' => 'Raspberry', 'color' => 'green', 'class' => 'Drupal\plugin_test\Plugin\plugin_test\fruit\Kale', 'provider' => 'plugin_test', @@ -270,7 +270,7 @@ public function testGetDefinitionsWithoutRequiredInterface() { $this->expectedDefinitions['kale'] = array( 'id' => 'kale', - 'label' => 'Kale', + 'label' => 'Raspberry', 'color' => 'green', 'class' => 'Drupal\plugin_test\Plugin\plugin_test\fruit\Kale', 'provider' => 'plugin_test',