X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FPlugin%2FDiscovery%2FCustomDirectoryAnnotatedClassDiscoveryTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FPlugin%2FDiscovery%2FCustomDirectoryAnnotatedClassDiscoveryTest.php;h=1074eb1ba5294ce7feae2edccf92ba1f37be23b6;hp=a6ae259bc2fdec51803f3f2fcea2122e96040fb1;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/tests/Drupal/KernelTests/Core/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php b/web/core/tests/Drupal/KernelTests/Core/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php index a6ae259bc..1074eb1ba 100644 --- a/web/core/tests/Drupal/KernelTests/Core/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php +++ b/web/core/tests/Drupal/KernelTests/Core/Plugin/Discovery/CustomDirectoryAnnotatedClassDiscoveryTest.php @@ -80,7 +80,7 @@ class CustomDirectoryAnnotatedClassDiscoveryTest extends DiscoveryTestBase { ], ]; - $base_directory = \Drupal::root() . '/core/modules/system/tests/modules/plugin_test/src'; + $base_directory = $this->root . '/core/modules/system/tests/modules/plugin_test/src'; $namespaces = new \ArrayObject(['Drupal\plugin_test' => $base_directory]); $this->discovery = new AnnotatedClassDiscovery('', $namespaces);