You are here

public function DemoUmamiProfileTest::testAppearance 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::testAppearance()

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

File

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

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');
}