3 namespace Drupal\FunctionalTests\Installer;
5 use Drupal\Tests\BrowserTestBase;
8 * Tests that the site name can be set during a non-interactive installation.
12 class SiteNameTest extends BrowserTestBase {
15 * The site name to be used when testing.
24 protected function installParameters() {
25 $this->siteName = $this->randomMachineName();
26 $parameters = parent::installParameters();
27 $parameters['forms']['install_configure_form']['site_name'] = $this->siteName;
32 * Tests that the desired site name appears on the page after installation.
34 public function testSiteName() {
36 $this->assertRaw($this->siteName, 'The site name that was set during the installation appears on the front page after installation.');