Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / update / tests / src / Functional / UpdateUploadTest.php
index 60966200629f20e1fe3f1d024f9e816d31c33042..e86dff54981eac8128e589eda9da69e239be118c 100644 (file)
@@ -190,10 +190,10 @@ class UpdateUploadTest extends UpdateTestBase {
    * Tests only an *.info.yml file are detected without supporting files.
    */
   public function testUpdateDirectory() {
-    $type = Updater::getUpdaterFromDirectory(\Drupal::root() . '/core/modules/update/tests/modules/aaa_update_test');
+    $type = Updater::getUpdaterFromDirectory($this->root . '/core/modules/update/tests/modules/aaa_update_test');
     $this->assertEqual($type, 'Drupal\\Core\\Updater\\Module', 'Detected a Module');
 
-    $type = Updater::getUpdaterFromDirectory(\Drupal::root() . '/core/modules/update/tests/themes/update_test_basetheme');
+    $type = Updater::getUpdaterFromDirectory($this->root . '/core/modules/update/tests/themes/update_test_basetheme');
     $this->assertEqual($type, 'Drupal\\Core\\Updater\\Theme', 'Detected a Theme.');
   }