Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / KernelTests / Core / TypedData / TypedDataTest.php
index e3e3fae2fe8c276a65040fcccf02fb6c552b1284..777146530734045a788a463a3745646800e95a42 100644 (file)
@@ -250,7 +250,7 @@ class TypedDataTest extends KernelTestBase {
     $files = [];
     for ($i = 0; $i < 3; $i++) {
       $path = "public://example_$i.png";
-      file_unmanaged_copy(\Drupal::root() . '/core/misc/druplicon.png', $path);
+      file_unmanaged_copy($this->root . '/core/misc/druplicon.png', $path);
       $image = File::create(['uri' => $path]);
       $image->save();
       $files[] = $image;
@@ -470,7 +470,7 @@ class TypedDataTest extends KernelTestBase {
     $this->assertEqual($value, [
       'one' => 'uno',
       'two' => 'zwei',
-      'three' => 'drei'
+      'three' => 'drei',
     ]);
 
     $properties = $typed_data->getProperties();