Mercurial > hg > isophonics-drupal-site
comparison core/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.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 | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
117 // Confirm that we are logged-in after installation. | 117 // Confirm that we are logged-in after installation. |
118 $this->assertText($this->rootUser->getUsername()); | 118 $this->assertText($this->rootUser->getUsername()); |
119 | 119 |
120 // Confirm that Drupal recognizes this distribution as the current profile. | 120 // Confirm that Drupal recognizes this distribution as the current profile. |
121 $this->assertEqual(\Drupal::installProfile(), 'mydistro'); | 121 $this->assertEqual(\Drupal::installProfile(), 'mydistro'); |
122 $this->assertNull(Settings::get('install_profile'), 'The install profile has not been written to settings.php.'); | 122 $this->assertArrayNotHasKey('install_profile', Settings::getAll(), 'The install profile has not been written to settings.php.'); |
123 $this->assertEqual($this->config('core.extension')->get('profile'), 'mydistro', 'The install profile has been written to core.extension configuration.'); | 123 $this->assertEqual($this->config('core.extension')->get('profile'), 'mydistro', 'The install profile has been written to core.extension configuration.'); |
124 | 124 |
125 $this->rebuildContainer(); | 125 $this->rebuildContainer(); |
126 $this->pass('Container can be rebuilt even though distribution is not written to settings.php.'); | 126 $this->pass('Container can be rebuilt even though distribution is not written to settings.php.'); |
127 $this->assertEqual(\Drupal::installProfile(), 'mydistro'); | 127 $this->assertEqual(\Drupal::installProfile(), 'mydistro'); |