namespace Drupal\Tests\demo_umami_content\Functional;
-use Drupal\Core\Site\Settings;
use Drupal\Tests\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',