public function testInstall() { $this->
copyCodebase();
$fs =
new Filesystem();
$fs->
chmod($this->
getWorkspaceDirectory() . '/sites/default', 0700, 0000
);
// Composer tells you stuff in error output.
$this->
executeCommand('COMPOSER_DISCARD_CHANGES=true composer install --no-interaction'
);
$this->
assertErrorOutputContains('Generating autoload files'
);
// We have to stand up the server first so we can know the port number to
// pass along to the install command.
$this->
standUpServer();
$php_finder =
new PhpExecutableFinder();
$install_command =
[ $php_finder->
find(),
'./core/scripts/test-site.php',
'install',
'--base-url=http://localhost:' .
$this->
getPortNumber(),
'--db-url=sqlite://localhost/foo.sqlite',
'--install-profile=minimal',
'--json',
];