function ClaroTest::testConfigSchema

Same name in other branches
  1. 8.9.x 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()
  3. 11.x core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testConfigSchema()

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

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