diff --git a/src/Commands/DrupalCommands.php b/src/Commands/DrupalCommands.php index ebda253b..e4c54696 100755 --- a/src/Commands/DrupalCommands.php +++ b/src/Commands/DrupalCommands.php @@ -290,7 +290,7 @@ public function settingsSetup(array $options = [ $settings_override_filename = $options['settings-override-file']; $settings_override_path = $options['root'] . '/sites/' . $options['sites-subdir'] . '/' . $settings_override_filename; return $this->collectionBuilder()->addTaskList([ - $this->taskFilesystemStack()->copy($options['root'] . '/sites/default/default.settings.php', $settings_file, TRUE), + $this->taskFilesystemStack()->copy($options['root'] . '/sites/default/default.settings.php', $settings_file, true), $this->taskWriteToFile($settings_file)->append()->lines([ 'if (file_exists($app_root . \'/\' . $site_path . \'/' . $settings_override_filename . '\')) {', ' include $app_root . \'/\' . $site_path . \'/' . $settings_override_filename . '\';', diff --git a/tests/CommandsTest.php b/tests/CommandsTest.php index e29af8ca..f05e9bd9 100644 --- a/tests/CommandsTest.php +++ b/tests/CommandsTest.php @@ -145,7 +145,7 @@ public function testSettingsSetup(array $config, array $expected) $configFile = $this->getSandboxFilepath('runner.yml'); file_put_contents($configFile, Yaml::dump($config)); - mkdir($this->getSandboxRoot() . '/build/sites/default/', 0777, TRUE); + mkdir($this->getSandboxRoot() . '/build/sites/default/', 0777, true); file_put_contents($this->getSandboxRoot() . '/build/sites/default/default.settings.php', ''); $input = new StringInput("drupal:settings-setup --working-dir=".$this->getSandboxRoot());