You are here

public function ClaroTest::testConfigSchema in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testConfigSchema()
  2. 10 core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testConfigSchema()

Test Claro's configuration schema.

File

core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php, line 45

Class

ClaroTest
Tests the Claro theme.

Namespace

Drupal\FunctionalTests\Theme

Code

public function testConfigSchema() {
  $this
    ->drupalLogin($this->rootUser);
  $this
    ->drupalGet('admin/modules');
  $this
    ->assertSession()
    ->elementNotExists('css', '#block-claro-help');

  // Install the block module to ensure Claro's configuration is valid
  // according to schema.
  \Drupal::service('module_installer')
    ->install([
    'block',
    'help',
  ]);
  $this
    ->rebuildAll();
  $this
    ->drupalGet('admin/modules');
  $this
    ->assertSession()
    ->elementExists('css', '#block-claro-help');
}