$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',
];
$this->
assertNotEmpty($output_json =
$this->
executeCommand(implode(' ',
$install_command))->
getOutput());
$this->
assertCommandSuccessful();
$connection_details =
json_decode($output_json, TRUE
);
foreach (['db_prefix', 'user_agent', 'site_path'
] as $key) { $this->
assertArrayHasKey($key,
$connection_details);
} // Visit paths with expectations.
$this->
visit();
$this->
assertDrupalVisit();
}}