diff core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
children
line wrap: on
line diff
--- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php	Thu Feb 28 13:21:36 2019 +0000
@@ -2,7 +2,6 @@
 
 namespace Drupal\FunctionalTests\Installer;
 
-use Drupal\Core\Site\Settings;
 use Drupal\Core\Database\Database;
 use Drupal\Core\DrupalKernel;
 use Symfony\Component\HttpFoundation\Request;
@@ -29,13 +28,6 @@
       'required' => TRUE,
     ];
 
-    // During interactive install we'll change this to a different profile and
-    // this test will ensure that the new value is written to settings.php.
-    $this->settings['settings']['install_profile'] = (object) [
-      'value' => 'minimal',
-      'required' => TRUE,
-    ];
-
     // Pre-configure database credentials.
     $connection_info = Database::getConnectionInfo();
     unset($connection_info['default']['pdo']);
@@ -73,8 +65,7 @@
   public function testInstaller() {
     $this->assertUrl('user/1');
     $this->assertResponse(200);
-    $this->assertEqual('testing', \Drupal::installProfile(), 'Profile was changed from minimal to testing during interactive install.');
-    $this->assertEqual('testing', Settings::get('install_profile'), 'Profile was correctly changed to testing in Settings.php');
+    $this->assertEqual('testing', \Drupal::installProfile());
   }
 
 }