Commit Graph

24 Commits

Author SHA1 Message Date
skodak 84ebf08dcc MDL-16483 $CFG->unittestprefix not required anymore to run unit tests that do not need fake db; it should be saer to let admins modify the prefix in config.php instead of modifying it from php 2009-01-10 16:06:53 +00:00
skodak 58fa5d6f75 MDL-16483 - renamed MoodleUnitTestCase to FakeDBUnitTestCase; MDL-17841 removed bogus remove lib/simpletest/slowcodetest.php 2009-01-10 13:47:26 +00:00
tjhunt 3169d49c84 unit tests: MDL-17803 test Db instatiate being called from two places, which was overwriting the reference to the real DB. 2009-01-07 08:59:13 +00:00
tjhunt 821e4ecf16 unit tests: MDL-17646 Helper functions for loading and cleaning up test data. 2008-12-15 02:39:55 +00:00
skodak beaa43db85 MDL-17036 dml: dbpersist moved into dboptions 2008-10-27 22:21:34 +00:00
mjollnir_ 915d745f2c tiny simpletest fix: start and end output buffering a bit more sensibly. 2008-10-13 10:17:01 +00:00
nicolasconnault 747f4a4ce6 MDL-16486 Flushing output buffer between each test, and fixed problem with update/delete of course_categories and context_temp 2008-09-23 05:11:35 +00:00
nicolasconnault 274e2947a2 MDL-16486 Only using one test $DB connection. Completed most of the implementation. Tests working well now. 2008-09-22 07:06:08 +00:00
nicolasconnault 5d1381c2c3 MDL-16486 Implemented the proxy DB class. Sort of working, but still some issues to sort out, like fix_course_sort_order, which updates a record NOT inserted by the unit test. 2008-09-19 14:28:22 +00:00
nicolasconnault cb352449ef MDL-16486 Correctly overriding $DB at construct time. 2008-09-18 15:26:38 +00:00
nicolasconnault 90997d6d6d MDL-16486 changed unittest_prefix to unittestprefix 2008-09-18 10:05:20 +00:00
nicolasconnault 294c7286c3 MDL-15666 MDL-16486 2008-09-17 14:41:16 +00:00
nicolasconnault c7d306e168 MDL-15666 MDL-16486 2008-09-17 14:31:30 +00:00
nicolasconnault 356e001031 MDL-16483 minor fixes 2008-09-16 16:40:15 +00:00
nicolasconnault b9c639d6c2 MDL-16483 Refactored install/upgrade code into lib/adminlib. Created an intermediate MoodleUnitTestCase class that overrides simpletest's constructor, destructor and setup/teardown methods. All moodle unit tests must extend this class. 2008-09-16 12:19:43 +00:00
skodak 245ac55791 MDL-14679 last forgotten bits of dml conversion 2008-06-09 19:48:24 +00:00
stronk7 56768525ac Merged from MOODLE_19_STABLE. Adding $Id tag 2007-10-12 09:45:33 +00:00
nicolasconnault 761447651e Minor changes related to unit testing 2007-10-11 09:15:57 +00:00
skodak 03cedd6283 MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-) 2007-10-10 12:19:27 +00:00
nicolasconnault a205dcdc09 Upgraded weblib::format_string() so it accepts unicode htmlentities. Also added more unit tests, including a stub for an integration web-based test. 2007-03-06 05:05:45 +00:00
nicolasconnault 4309bd17dd Manually merged from MOODLE_18_STABLE 2007-03-01 02:35:13 +00:00
stronk7 bb48a53735 Some more uses of $CFG->dbfamily. MDL-7061 2007-01-13 00:09:02 +00:00
nfreear 22a3b7ccef Fixes bug MDL-6478 "Unit tests (not) working.." 2006-09-07 09:11:55 +00:00
tjhunt 3ef8c9362d Bug #5979 - Check in the OU's unit testing framework. Docs at http://docs.moodle.org/en/Unit_tests 2006-06-30 14:59:05 +00:00