X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FFile%2FDirectoryTest.php;h=467d9262e169e71e66dc47ce0f5d29b57bc9691d;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=4e35821690a2e33260f5b82d8e7085497b46f7e0;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php b/web/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php index 4e3582169..467d9262e 100644 --- a/web/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php +++ b/web/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php @@ -45,7 +45,7 @@ class DirectoryTest extends FileTestBase { $this->assertDirectoryPermissions($directory, $old_mode); // Check creating a directory using an absolute path. - $absolute_path = drupal_realpath($directory) . DIRECTORY_SEPARATOR . $this->randomMachineName() . DIRECTORY_SEPARATOR . $this->randomMachineName(); + $absolute_path = \Drupal::service('file_system')->realpath($directory) . DIRECTORY_SEPARATOR . $this->randomMachineName() . DIRECTORY_SEPARATOR . $this->randomMachineName(); $this->assertTrue(drupal_mkdir($absolute_path, 0775, TRUE), 'No error reported when creating new absolute directories.', 'File'); $this->assertDirectoryPermissions($absolute_path, 0775); }