comparison core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsMismatchProfileTest.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
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
6 use Drupal\Core\Site\Settings; 6 use Drupal\Core\Site\Settings;
7 use Drupal\Core\Database\Database; 7 use Drupal\Core\Database\Database;
8 use Symfony\Component\HttpFoundation\Request; 8 use Symfony\Component\HttpFoundation\Request;
9 9
10 /** 10 /**
11 * Tests the installer with an existing settings file but no install profile. 11 * Tests install with existing settings.php and a mismatching install profile.
12 * 12 *
13 * @group Installer 13 * @group Installer
14 * @group legacy
14 */ 15 */
15 class InstallerExistingSettingsMismatchProfileTest extends InstallerTestBase { 16 class InstallerExistingSettingsMismatchProfileTest extends InstallerTestBase {
16 17
17 /** 18 /**
18 * {@inheritdoc} 19 * {@inheritdoc}
66 67
67 /** 68 /**
68 * {@inheritdoc} 69 * {@inheritdoc}
69 */ 70 */
70 protected function setUpLanguage() { 71 protected function setUpLanguage() {
71 // This step is skipped, because there is a lagcode as a query param. 72 // This step is skipped, because there is a langcode as a query param.
72 } 73 }
73 74
74 /** 75 /**
75 * {@inheritdoc} 76 * {@inheritdoc}
76 */ 77 */
86 // already. 87 // already.
87 } 88 }
88 89
89 /** 90 /**
90 * Verifies that installation succeeded. 91 * Verifies that installation succeeded.
92 *
93 * @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
91 */ 94 */
92 public function testInstaller() { 95 public function testInstaller() {
93 $this->assertUrl('user/1'); 96 $this->assertUrl('user/1');
94 $this->assertResponse(200); 97 $this->assertResponse(200);
95 $this->assertEqual('testing', \Drupal::installProfile()); 98 $this->assertEqual('testing', \Drupal::installProfile());