function DemoUmamiProfileTest::testWarningsOnStatusPage

Same name and namespace in other branches
  1. 8.9.x core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php \Drupal\Tests\demo_umami\Functional\DemoUmamiProfileTest::testWarningsOnStatusPage()
  2. 10 core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php \Drupal\Tests\demo_umami\Functional\DemoUmamiProfileTest::testWarningsOnStatusPage()
  3. 11.x 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.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.