diff --git a/core/modules/system/lib/Drupal/system/Tests/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php b/core/modules/system/lib/Drupal/system/Tests/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php index c005300..52d4fea 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php @@ -38,6 +38,37 @@ protected function setUp() { 'class' => 'Drupal\plugin_test\CustomDirectoryExample2', 'provider' => 'plugin_test', ), + 'apple' => array( + 'id' => 'apple', + 'label' => 'Apple', + 'color' => 'green', + 'class' => 'Drupal\plugin_test\Plugin\plugin_test\fruit\Apple', + 'provider' => 'plugin_test', + ), + 'banana' => array( + 'id' => 'banana', + 'label' => 'Banana', + 'color' => 'yellow', + 'uses' => array( + 'bread' => t('Banana bread'), + ), + 'class' => 'Drupal\plugin_test\Plugin\plugin_test\fruit\Banana', + 'provider' => 'plugin_test', + ), + 'cherry' => array( + 'id' => 'cherry', + 'label' => 'Cherry', + 'color' => 'red', + 'class' => 'Drupal\plugin_test\Plugin\plugin_test\fruit\Cherry', + 'provider' => 'plugin_test', + ), + 'orange' => array( + 'id' => 'orange', + 'label' => 'Orange', + 'color' => 'orange', + 'class' => 'Drupal\plugin_test\Plugin\plugin_test\fruit\Orange', + 'provider' => 'plugin_test', + ), ); $namespaces = new \ArrayObject(array('Drupal\plugin_test' => DRUPAL_ROOT . '/core/modules/system/tests/modules/plugin_test/lib')); $this->discovery = new AnnotatedClassDiscovery('', $namespaces);