siteName = $this->randomMachineName(); $parameters = parent::installParameters(); $parameters['forms']['install_configure_form']['site_name'] = $this->siteName; return $parameters; } /** * Tests that the desired site name appears on the page after installation. */ public function testSiteName() { $this->drupalGet(''); $this->assertRaw($this->siteName, 'The site name that was set during the installation appears on the front page after installation.'); } }