function DemoUmamiProfileTest::testAppearance

Same name in other branches
  1. 9 core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php \Drupal\Tests\demo_umami\Functional\DemoUmamiProfileTest::testAppearance()
  2. 10 core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php \Drupal\Tests\demo_umami\Functional\DemoUmamiProfileTest::testAppearance()
  3. 11.x core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php \Drupal\Tests\demo_umami\Functional\DemoUmamiProfileTest::testAppearance()

Tests that the Umami theme is available on the Appearance page.

File

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

Class

DemoUmamiProfileTest
Tests demo_umami profile.

Namespace

Drupal\Tests\demo_umami\Functional

Code

public function testAppearance() {
    $account = $this->drupalCreateUser([
        'administer themes',
    ]);
    $this->drupalLogin($account);
    $webassert = $this->assertSession();
    $this->drupalGet('admin/appearance');
    $webassert->pageTextContains('Umami');
}

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