function OliveroTest::testSystemSiteBrandingSlogan

Tests slogan of system branding block.

File

core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php, line 168

Class

OliveroTest
Tests the Olivero theme.

Namespace

Drupal\FunctionalTests\Theme

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.