Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / color / tests / src / Functional / ColorTest.php
index c11a92262ec68fc44f0c94fa6656db8a8f3e19c8..de3ab691607d2cce3e37168b671f6f4522e8b415 100644 (file)
@@ -141,7 +141,7 @@ class ColorTest extends BrowserTestBase {
     $stylesheets = \Drupal::state()->get('drupal_css_cache_files') ?: [];
     $stylesheet_content = '';
     foreach ($stylesheets as $uri) {
-      $stylesheet_content .= implode("\n", file(drupal_realpath($uri)));
+      $stylesheet_content .= implode("\n", file(\Drupal::service('file_system')->realpath($uri)));
     }
     $this->assertTrue(strpos($stylesheet_content, 'public://') === FALSE, 'Make sure the color paths have been translated to local paths. (' . $theme . ')');
     $config->set('css.preprocess', 0);