function OliveroTest::testSystemSiteBrandingSlogan

Same name in this branch
  1. 11.x core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php \Drupal\FunctionalTests\Theme\OliveroTest::testSystemSiteBrandingSlogan()
Same name and namespace in other branches
  1. main core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php \Drupal\FunctionalTests\Theme\OliveroTest::testSystemSiteBrandingSlogan()
  2. main core/themes/olivero/tests/src/Functional/OliveroTest.php \Drupal\Tests\olivero\Functional\OliveroTest::testSystemSiteBrandingSlogan()

Tests slogan of system branding block.

File

core/themes/olivero/tests/src/Functional/OliveroTest.php, line 171

Class

OliveroTest
Tests the Olivero theme.

Namespace

Drupal\Tests\olivero\Functional

Code

public function testSystemSiteBrandingSlogan() : void {
  $this->config('system.site')
    ->set('slogan', 'Community carpentry')
    ->save();
  $this->drupalGet('<front>');
  $this->assertSession()
    ->pageTextContains('Community carpentry');
}

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