X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FTests%2FSystem%2FThemeTest.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FTests%2FSystem%2FThemeTest.php;h=78fac8eadacf33bdec4c4d7ae877421c030645b5;hp=29d88a3778d7e49fe694bf56858f5c61f7b1e5e1;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/system/src/Tests/System/ThemeTest.php b/web/core/modules/system/src/Tests/System/ThemeTest.php index 29d88a377..78fac8ead 100644 --- a/web/core/modules/system/src/Tests/System/ThemeTest.php +++ b/web/core/modules/system/src/Tests/System/ThemeTest.php @@ -152,7 +152,7 @@ class ThemeTest extends WebTestBase { // Semi-absolute path to arbitrary non-existing file. '/core/misc/whatever.png', // Absolute paths to any local file (even if it exists). - drupal_realpath($file->uri), + \Drupal::service('file_system')->realpath($file->uri), ]; $this->drupalGet('admin/appearance/settings'); foreach ($unsupported_paths as $path) { @@ -168,7 +168,7 @@ class ThemeTest extends WebTestBase { $edit = [ 'default_logo' => FALSE, 'logo_path' => '', - 'files[logo_upload]' => drupal_realpath($file->uri), + 'files[logo_upload]' => \Drupal::service('file_system')->realpath($file->uri), ]; $this->drupalPostForm('admin/appearance/settings', $edit, t('Save configuration')); @@ -390,7 +390,7 @@ class ThemeTest extends WebTestBase { // Check that bartik can be uninstalled now. $this->assertRaw('Uninstall Bartik theme', 'A link to uninstall the Bartik theme does appear on the theme settings page.'); - // Check that the classy theme still can't be uninstalled as neither of it's + // Check that the classy theme still can't be uninstalled as neither of its // base themes have been. $this->assertNoRaw('Uninstall Classy theme', 'A link to uninstall the Classy theme does not appear on the theme settings page.');