protected function Tasks::runTestQuery in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::runTestQuery()
Run SQL tests to ensure the database can execute commands with the current user.
File
- core/
lib/ Drupal/ Core/ Database/ Install/ Tasks.php, line 179 - Contains \Drupal\Core\Database\Install\Tasks.
Class
- Tasks
- Database installer structure.
Namespace
Drupal\Core\Database\InstallCode
protected function runTestQuery($query, $pass, $fail, $fatal = FALSE) {
try {
Database::getConnection()
->query($query);
$this
->pass(t($pass));
} catch (\Exception $e) {
$this
->fail(t($fail, array(
'%query' => $query,
'%error' => $e
->getMessage(),
'%name' => $this
->name(),
)));
return !$fatal;
}
}