You are here

public function DemoUmamiProfileTest::testWarningsOnStatusPage in Drupal 9

Same name and namespace in other branches
  1. 8 core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php \Drupal\Tests\demo_umami\Functional\DemoUmamiProfileTest::testWarningsOnStatusPage()

Tests demo_umami profile warnings shown on Status Page.

File

core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php, line 38

Class

DemoUmamiProfileTest
Tests demo_umami profile.

Namespace

Drupal\Tests\demo_umami\Functional

Code

public function testWarningsOnStatusPage() {
  $account = $this
    ->drupalCreateUser([
    'administer site configuration',
  ]);
  $this
    ->drupalLogin($account);

  // Check the requirements warning for using an experimental profile.
  $this
    ->drupalGet('admin/reports/status');
  $this
    ->assertSession()
    ->pageTextContains('Experimental profiles are provided for testing purposes only. Use at your own risk. To start building a new site, reinstall Drupal and choose a non-experimental profile.');
}