Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / file / tests / src / Kernel / Migrate / d6 / FileMigrationTestTrait.php
index aa506d83bacd7c604ecd4a9ebc68fad333d4db26..1fc8a52be0edf8f6749cd62eb88c9266959a418d 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 namespace Drupal\Tests\file\Kernel\Migrate\d6;
+
 use Drupal\migrate\Plugin\MigrationInterface;
 
 /**
@@ -29,7 +30,7 @@ trait FileMigrationTestTrait {
       // Make sure we have a single trailing slash.
       $source = $migration->getSourceConfiguration();
       $source['site_path'] = 'core/modules/simpletest';
-      $source['constants']['source_base_path'] = \Drupal::root() . '/';
+      $source['constants']['source_base_path'] = $this->root . '/';
       $migration->set('source', $source);
     }
   }