You are here

public function InstallerExistingSettingsReadOnlyMismatchProfileTest::testInstalled in Drupal 8

Verifies that installation succeeded.

@expectedDeprecation To access the install profile in Drupal 8 use \Drupal::installProfile() or inject the install_profile container parameter into your service. See https://www.drupal.org/node/2538996

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsReadOnlyMismatchProfileTest.php, line 104

Class

InstallerExistingSettingsReadOnlyMismatchProfileTest
Tests installer breaks with a profile mismatch and a read-only settings.php.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testInstalled() {
  $this
    ->initBrowserOutputFile();
  $this
    ->htmlOutput(NULL);
  $this
    ->assertEquals('testing', \Drupal::installProfile());
  $this
    ->assertEquals('minimal', Settings::get('install_profile'));
  $this
    ->drupalGet('admin/reports/status');
  $this
    ->assertSession()
    ->pageTextContains("Drupal 8 no longer uses the \$settings['install_profile'] value in settings.php and it can be removed.");
}