'Failed to <strong>DROP</strong> a test table from your database server. We tried dropping a table with the command %query and the server reported the following error %error.',
],
],
[
'function'=>'checkJsonSupport',
'arguments'=>[],
],
];
/**
@@ -386,4 +390,16 @@ protected function getConnection() {
returnDatabase::getConnection();
}
/**
* Checks the database json support.
*/
protectedfunctioncheckJsonSupport(){
if($this->getConnection()->hasJson()){
$this->pass(t('Database connection supports the JSON type.'));
}
else{
$this->fail(t('<a href="https://www.drupal.org/docs/system-requirements">Database connection does not support JSON.</a>'));