comparison core/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
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.');