Mercurial > hg > isophonics-drupal-site
annotate core/tests/Drupal/FunctionalTests/Installer/InstallerEmptySettingsTest.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | c2387f117808 |
children |
rev | line source |
---|---|
Chris@16 | 1 <?php |
Chris@16 | 2 |
Chris@16 | 3 namespace Drupal\FunctionalTests\Installer; |
Chris@16 | 4 |
Chris@16 | 5 /** |
Chris@16 | 6 * Tests the installer with empty settings file. |
Chris@16 | 7 * |
Chris@16 | 8 * @group Installer |
Chris@16 | 9 */ |
Chris@16 | 10 class InstallerEmptySettingsTest extends InstallerTestBase { |
Chris@16 | 11 |
Chris@16 | 12 /** |
Chris@16 | 13 * {@inheritdoc} |
Chris@16 | 14 */ |
Chris@16 | 15 protected function prepareEnvironment() { |
Chris@16 | 16 parent::prepareEnvironment(); |
Chris@16 | 17 // Create an empty settings.php file. |
Chris@16 | 18 $path = $this->root . DIRECTORY_SEPARATOR . $this->siteDirectory; |
Chris@16 | 19 file_put_contents($path . '/settings.php', ''); |
Chris@16 | 20 } |
Chris@16 | 21 |
Chris@16 | 22 /** |
Chris@16 | 23 * Verifies that installation succeeded. |
Chris@16 | 24 */ |
Chris@16 | 25 public function testInstaller() { |
Chris@16 | 26 $this->assertUrl('user/1'); |
Chris@16 | 27 $this->assertResponse(200); |
Chris@16 | 28 } |
Chris@16 | 29 |
Chris@16 | 30 } |