Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / profiles / demo_umami / modules / demo_umami_content / tests / src / Functional / DefaultContentFilesAccessTest.php
index b12149190db42558f01d214e308e66104113da24..3e93494404d37659cb2a326be1ff9ca0b77b1929 100644 (file)
@@ -2,7 +2,6 @@
 
 namespace Drupal\Tests\demo_umami_content\Functional;
 
-use Drupal\Core\Site\Settings;
 use Drupal\Tests\BrowserTestBase;
 
 /**
@@ -18,7 +17,7 @@ class DefaultContentFilesAccessTest extends BrowserTestBase {
   public function testAccessDeniedToFiles() {
     // The demo_umami profile should not be used because we want to ensure that
     // if you install another profile these files are not available.
-    $this->assertNotSame('demo_umami', Settings::get('install_profile'));
+    $this->assertNotSame('demo_umami', \Drupal::installProfile());
 
     $files_to_test = [
       'images/chocolate-brownie-umami.jpg',