function OliveroTest::testSystemSiteBrandingSlogan
Same name in this branch
- 11.x core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php \Drupal\FunctionalTests\Theme\OliveroTest::testSystemSiteBrandingSlogan()
Same name and namespace in other branches
- main core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php \Drupal\FunctionalTests\Theme\OliveroTest::testSystemSiteBrandingSlogan()
- 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\FunctionalCode
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.