MDL-54573 testing: use dbtype rather dbvendor for diagnostics
authorDan Poltawski <dan@moodle.com>
Fri, 13 May 2016 13:43:09 +0000 (14:43 +0100)
committerDan Poltawski <dan@moodle.com>
Fri, 13 May 2016 13:49:42 +0000 (14:49 +0100)
So that we can differentiate between drivers

lib/testing/classes/util.php

index 09873af..7b4c593 100644 (file)
@@ -1103,7 +1103,7 @@ abstract class testing_util {
         $env['phpversion'] = $phpversion;
 
         // Add database type and version.
-        $dbtype = $DB->get_dbvendor();
+        $dbtype = $CFG->dbtype;
         $dbinfo = $DB->get_server_info();
         $dbversion = $dbinfo['version'];
         $env['dbtype'] = ucfirst($dbtype);