Commit Graph

13 Commits

Author SHA1 Message Date
Tim Hunt 9812ea0a62 MDL-47666 DB auth & enrol: unit tests fail with custom DB drivers
Changed to used $DB->get_db_family, rather than hard-coding the list of
class names.
2014-10-20 12:05:34 +01:00
Eloy Lafuente (stronk7) 6576413e48 MDL-44862 postgres: tests to support socket & port
Both the database auth and enrol plugins use ADOdb
to perform connections. Socket and port are allowed
there if passed as "socket:port", so, when both are
configured in CFG, we pass them that way. Else
ADOdb defaults to standard port (5432).
2014-03-31 09:28:57 +08:00
Petr Škoda bfaf4f00cb MDL-43903 prevent adodb error logging output in phpunit execution with
native ms sql driver
2014-01-30 10:39:34 +08:00
Petr Škoda 17601a7e12 MDL-39985 add explicit MariaDB support 2013-07-24 10:45:20 +08:00
Petr Škoda 92b00c32a7 MDL-37420 rework pg schema testing 2013-01-11 02:12:38 +01:00
Petr Škoda 917fddb5e2 MDL-37420 add support for db schemas in enrol test 2013-01-08 17:20:26 +01:00
Dan Poltawski e06c710e87 Merge branch 'w51_MDL-37293_m25_enroldbprogress' of git://github.com/skodak/moodle 2013-01-08 09:52:29 +08:00
Petr Škoda 411c3f9800 MDL-37293 user progress_trace in enrol_database sync 2012-12-29 21:43:03 +01:00
Petr Škoda b66e926895 MDL-36807 use our mysql socket logic in adodb tests 2012-12-20 22:41:18 +01:00
Marina Glancy 850acb3560 MDL-35768 MDL-36017 Avoid calling format_base::get_course() when not necessary
- If we want to check fields 'numsections' or 'hiddensections' call course_get_format()->get_format_options()
- We still use extended course object in course/edit.php, update_course(), create_course(), and inside course formats
2012-11-05 11:22:06 +08:00
Marina Glancy b5cf83f080 MDL-36017 Fields numsections, hiddensections and coursedisplay are now format-specific options
- Fields added to format_legacy as default course format options;
- Upgrade script copies fields values from table course to course_format_options;
- Fields removed from table course;
- Fields removed from edit course form;
- Since front-page course has a 'numsections' setting, format_site defines it as it's option;
- Removed accessing those fields in core code unless we know that format supports them and in this
  case instead of $course = $DB->get_record('course'); we use:
  $course = course_get_format($courseorid)->get_course(); This way all format-specific options
  are added to the $course object
2012-11-02 10:56:19 +08:00
Petr Škoda d2f26cec9d MDL-35701 add parameter for sync of one course only 2012-09-30 14:36:50 +02:00
Petr Škoda 13a2366cad MD-35701 implement enrol_database unit tests and fix minor issues
Includes fixes for minor problems discovered during testing:
* Removed invalid role->fullname sync option, there was never such fields in roles table and the name column is now usually empty.
* Empty category column now means use default category.
2012-09-30 14:36:23 +02:00