You are here

public function InstallerExistingSettingsMismatchProfileTest::testInstaller 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/InstallerExistingSettingsMismatchProfileTest.php, line 98

Class

InstallerExistingSettingsMismatchProfileTest
Tests install with existing settings.php and a mismatching install profile.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testInstaller() {
  $this
    ->assertUrl('user/1');
  $this
    ->assertResponse(200);
  $this
    ->assertEqual('testing', \Drupal::installProfile());
  $this
    ->assertEqual('testing', Settings::get('install_profile'), 'Profile was correctly changed to testing in Settings.php');
}