Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / KernelTests / Core / EventSubscriber / IgnoreReplicaSubscriberTest.php
index 7ce994a94472d3448bc9d83d2ad748429c5756e2..237edb63c311f5987de7cc28d9880bd21a708c3f 100644 (file)
@@ -28,7 +28,7 @@ class IgnoreReplicaSubscriberTest extends KernelTestBase {
     Database::addConnectionInfo('default', 'replica', $connection_info['default']);
 
     db_ignore_replica();
-    $class_loader = require \Drupal::root() . '/autoload.php';
+    $class_loader = require $this->root . '/autoload.php';
     $kernel = new DrupalKernel('testing', $class_loader, FALSE);
     $event = new GetResponseEvent($kernel, Request::create('http://example.com'), HttpKernelInterface::MASTER_REQUEST);
     $subscriber = new ReplicaDatabaseIgnoreSubscriber();