Mercurial > hg > isophonics-drupal-site
comparison core/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
113 */ | 113 */ |
114 public function testInstalled() { | 114 public function testInstalled() { |
115 $this->assertUrl('user/1'); | 115 $this->assertUrl('user/1'); |
116 $this->assertResponse(200); | 116 $this->assertResponse(200); |
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->getAccountName()); |
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->assertArrayNotHasKey('install_profile', Settings::getAll(), '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.'); |