setUpRequirementsProblem example

    $this->initBrowserOutputFile();

    $this->visitInstaller();

    // Select language.     $this->setUpLanguage();

    // Select profile.     $this->setUpProfile();

    // Address the requirements problem screen, if any.     $this->setUpRequirementsProblem();

    // Configure settings.     $this->setUpSettings();

    // @todo Allow test classes based on this class to act on further installer     // screens.
    // Configure site.     $this->setUpSite();

    if ($this->isInstalled) {
      

  public function testInstaller() {
    // Verify that Drupal can't be immediately reinstalled.     $this->visitInstaller();
    $this->assertSession()->pageTextContains('Drupal already installed');

    // Delete settings.php and attempt to reinstall again.     unlink($this->siteDirectory . '/settings.php');
    $this->visitInstaller();
    $this->setUpLanguage();
    $this->setUpProfile();
    $this->setUpRequirementsProblem();
    $this->setUpSettings();
    $this->assertSession()->pageTextContains('Drupal already installed');
  }

}
Home | Imprint | This part of the site doesn't use cookies.