comparison core/tests/Drupal/FunctionalTests/Installer/InstallerEmptySettingsTest.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents
children
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
1 <?php
2
3 namespace Drupal\FunctionalTests\Installer;
4
5 /**
6 * Tests the installer with empty settings file.
7 *
8 * @group Installer
9 */
10 class InstallerEmptySettingsTest extends InstallerTestBase {
11
12 /**
13 * {@inheritdoc}
14 */
15 protected function prepareEnvironment() {
16 parent::prepareEnvironment();
17 // Create an empty settings.php file.
18 $path = $this->root . DIRECTORY_SEPARATOR . $this->siteDirectory;
19 file_put_contents($path . '/settings.php', '');
20 }
21
22 /**
23 * Verifies that installation succeeded.
24 */
25 public function testInstaller() {
26 $this->assertUrl('user/1');
27 $this->assertResponse(200);
28 }
29
30 }