You are here

public function SiteNameTest::testSiteName in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Installer/SiteNameTest.php \Drupal\FunctionalTests\Installer\SiteNameTest::testSiteName()
  2. 9 core/tests/Drupal/FunctionalTests/Installer/SiteNameTest.php \Drupal\FunctionalTests\Installer\SiteNameTest::testSiteName()

Tests that the desired site name appears on the page after installation.

File

core/tests/Drupal/FunctionalTests/Installer/SiteNameTest.php, line 39

Class

SiteNameTest
Tests that the site name can be set during a non-interactive installation.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testSiteName() {
  $this
    ->drupalGet('');
  $this
    ->assertSession()
    ->pageTextContains($this->siteName);
}