Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / KernelTests / Core / Plugin / Discovery / AnnotatedClassDiscoveryTest.php
index 9003713f53223b44438a9c8a25366b0b08436f91..34168dab50aa89cdf77ba8ea9fe05fce3740207a 100644 (file)
@@ -73,8 +73,8 @@ class AnnotatedClassDiscoveryTest extends DiscoveryTestBase {
       ],
     ];
 
-    $base_directory = \Drupal::root() . '/core/modules/system/tests/modules/plugin_test/src';
-    $base_directory2 = \Drupal::root() . '/core/modules/system/tests/modules/plugin_test_extended/src';
+    $base_directory = $this->root . '/core/modules/system/tests/modules/plugin_test/src';
+    $base_directory2 = $this->root . '/core/modules/system/tests/modules/plugin_test_extended/src';
     $namespaces = new \ArrayObject(['Drupal\plugin_test' => $base_directory, 'Drupal\plugin_test_extended' => $base_directory2]);
 
     $annotation_namespaces = ['Drupal\plugin_test\Plugin\Annotation', 'Drupal\plugin_test_extended\Plugin\Annotation'];