Chris@17: siteDirectory . '/profiles/' . $this->profile; Chris@17: $contents = <<profile}.install", $contents); Chris@17: parent::visitInstaller(); Chris@17: } Chris@17: Chris@17: /** Chris@17: * Installer step: Select installation profile. Chris@17: */ Chris@17: protected function setUpProfile() { Chris@17: // This is the form we are testing so wait until the test method to do Chris@17: // assertions. Chris@17: return; Chris@17: } Chris@17: Chris@17: /** Chris@17: * Installer step: Requirements problem. Chris@17: */ Chris@17: protected function setUpRequirementsProblem() { Chris@17: // This form will never be reached. Chris@17: return; Chris@17: } Chris@17: Chris@17: /** Chris@17: * Installer step: Configure settings. Chris@17: */ Chris@17: protected function setUpSettings() { Chris@17: // This form will never be reached. Chris@17: return; Chris@17: } Chris@17: Chris@17: /** Chris@17: * Final installer step: Configure site. Chris@17: */ Chris@17: protected function setUpSite() { Chris@17: // This form will never be reached. Chris@17: return; Chris@17: } Chris@17: Chris@17: /** Chris@17: * {@inheritdoc} Chris@17: */ Chris@17: protected function getConfigTarball() { Chris@17: return __DIR__ . '/../../../fixtures/config_install/multilingual.tar.gz'; Chris@17: } Chris@17: Chris@17: /** Chris@17: * Tests installing from config is not available due to hook_INSTALL(). Chris@17: */ Chris@17: public function testConfigSync() { Chris@17: $this->assertSession()->titleEquals('Select an installation profile | Drupal'); Chris@17: $this->assertSession()->responseNotContains('Use existing configuration'); Chris@17: Chris@17: // Remove the install hook and the option to install from existing Chris@17: // configuration will be available. Chris@17: unlink("{$this->siteDirectory}/profiles/{$this->profile}/{$this->profile}.install"); Chris@17: $this->getSession()->reload(); Chris@17: $this->assertSession()->titleEquals('Select an installation profile | Drupal'); Chris@17: $this->assertSession()->responseContains('Use existing configuration'); Chris@17: } Chris@17: Chris@17: }