You are here

public function DemoUmamiProfileTest::testAppearance in Drupal 8

Same name and namespace in other branches
  1. 9 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');
}