Commit graph

191 commits

Author SHA1 Message Date
skodak
beaa43db85 MDL-17036 dml: dbpersist moved into dboptions 2008-10-27 22:21:34 +00:00
tjhunt
6ff2be37f5 moodlelib iprange checks: MDL-16986 If the user makes a mistake and types something like 172.16.1.143/148, with something greater than 32 after the slash, treat it as /32. 2008-10-24 02:53:51 +00:00
mjollnir_
51122d6c67 MDL-16587 & MDL-15666: portfolio unit test framework expanded to do 3d rather than 2d testing (caller + plugin + new: exportformat) 2008-10-13 10:20:05 +00:00
jamiesensei
8b92c1e3f6 MDL-16529 "Only include closed attempts in manual grade counts" 2008-09-23 09:52:55 +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
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
mjollnir_
932e78b53b MDL-15666 - fake writting files in test portfolio exporter so that we can test integration between callers and plugins 2008-09-15 16:10:55 +00:00
nicolasconnault
3cc60460e8 MDL-15666 Subclassing exporter class so that only local files are written 2008-09-15 13:45:14 +00:00
nicolasconnault
795ad63034 MDL-15666 Testing a matrix of portfolio caller/plugin. Starting the new cleanup method in unit tests (max id) 2008-09-15 13:18:44 +00:00
mjollnir_
27dda89ffe MDL-15666 - changes to the portfolio caller tests
now that i changed the api again (adding load_data), rather than add a call to it to
all the callers, i abstracted the caller setup into the parent class (portfoliolib_test)
2008-09-11 13:47:40 +00:00
nicolasconnault
ef6f0f603d MDL-15666 new unit test for new button class 2008-09-10 17:08:14 +00:00
nicolasconnault
2341547ccc MDL-15666 Fixed some fatal errors in database generation 2008-09-09 10:17:48 +00:00
nicolasconnault
6b98209524 MDL-15666 Unit tests can all be run from lib/simpletest/testportfoliolib.php. See requires at the end of the file. 2008-09-06 14:36:45 +00:00
nicolasconnault
6511446349 MDL-15666 Fixed error that caused blank page in unit test. Including generator library. Partly fixed generator. 2008-09-06 11:24:57 +00:00
nicolasconnault
7399a49d44 MDL-14081 fixed error in eventslib unit tests 2008-09-06 11:22:30 +00:00
nicolasconnault
77ac22a5b6 MDL-15666 sha1 tests for glossary callers. Entry caller test currently fails. 2008-09-04 11:44:48 +00:00
skodak
8aff848213 MDL-14589 minor database driver loading refactoring 2008-09-02 20:32:03 +00:00
tjhunt
1cc6b5162c MDL-15655 - address_in_subnet does not work on 64 bit architectures. Also, we found some other issues with this funtion while diagnosing the problem. 2008-09-01 04:17:11 +00:00
nicolasconnault
75d226d74d MDL-15666 Generating test data on-the-fly using the generator! 2008-08-29 14:46:55 +00:00
nicolasconnault
7e95408b01 MDL-15666 MDL-16177
Refactored the generator script into proper Object Oriented code. It can now be used as a CLI tool, as a web form or as an included library with a function call. Stub implementation is demonstrated in portfolio unit tests.
2008-08-29 08:01:55 +00:00
mjollnir_
cc8696b2ef MDL-15666 - fixed up the dup test and changed setup to mock the user 2008-08-19 16:14:17 +00:00
nicolasconnault
29de31324e MDL-15666 Tests for creating duplicate instance of plugin that doesn't allow duplicates 2008-08-19 15:34:05 +00:00
nicolasconnault
d50475e64f MDL-15666 Adding test file with stub methods. 2008-08-19 09:21:30 +00:00
nicolasconnault
ea549328d0 MDL-15666 Adding test file with stub methods. 2008-08-19 07:14:03 +00:00
skodak
bed7993115 MDL-15897 deprecated PARAM_CLEANFILE - we now support unicode everywhere 2008-07-31 23:03:50 +00:00
sam_marshall
49f6e5f476 MDL-15498: Fixes to problems Petr identified with completion system checkin 2008-07-28 15:58:50 +00:00
sam_marshall
4e781c7b50 MDL-15498: Completion system 2008-07-28 12:31:29 +00:00
nicolasconnault
a95c68a188 MDL-15808 changed prefix to tst_ and added dboptions 2008-07-25 06:56:33 +00:00
nicolasconnault
9fed64fa19 MDL-15808 Applying Andrei's patch 2008-07-24 12:21:19 +00:00
Francois Marier
6800d78e06 Drift between CVS and git
- large deletions
- lucene updates
- error() => print_error()
- NO_MOODLE_COOKIES define
- various other things
2008-06-25 17:31:23 +00:00
skodak
eee5d9bb85 MDL-14956 DDL exceptions 2008-06-22 16:51:55 +00:00
sam_marshall
977b3d3145 MDL-15263 Fixed numeric entities remaining after html_to_text 2008-06-16 14:07:47 +00:00
skodak
0537d4a071 MDL-15094 removed remaining references to $db 2008-06-15 12:34:08 +00:00
skodak
b1f93b1512 MDL-15246 moving all remaining ddl function to adminlib, keeping old lib/ddllib.php only for BC withexisting code; fixed inline docs related to ddl 2008-06-15 10:32:50 +00:00
skodak
e4c033a9dd MDL-15194 adodb separation, dml database creation support 2008-06-09 20:22:11 +00:00
skodak
245ac55791 MDL-14679 last forgotten bits of dml conversion 2008-06-09 19:48:24 +00:00
skodak
c7da43571b MDL-14679 converted some count_records 2008-06-02 21:47:31 +00:00
skodak
50c5bef452 MDL-14679 towards enrol conversion 2008-06-02 21:02:52 +00:00
nicolasconnault
da3801e84b MDL-14967 Upgraded gradebook code and unit tests. 4 failing tests in grade_item to fix. 2008-05-23 14:52:50 +00:00
stronk7
a8cb94f66f MDL-14863 - 1st iteration: lowercase XMLDB table, field, index, key and statement +
wrapper class to support old syntax (no changes in public API yet)
2008-05-20 23:24:40 +00:00
dongsheng
2f137aa130 "MDL-14129, fix print_error" 2008-05-20 02:53:46 +00:00
tjhunt
d33725bd2d New convinience function in accesslib: get_parent_contextid. Also, the start of some unit tests for accesslib, but only this trivial funciton, and the get_parent_contexts function it is based on. Still, it is a start. 2008-05-12 15:28:34 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
nicolasconnault
5bbb6fed88 MDL-14081 Adding the fullname value to test grade_outcomes. Merging from MOODLE_19_STABLE 2008-04-02 06:37:55 +00:00
nicolasconnault
95c2d696c4 MDL-14065 Commented out buggy backuplib tests, and replaced E_ALL with DEBUG_DEVELOPER in dmllib tests 2008-03-27 17:08:55 +00:00
nicolasconnault
27c9bf2445 MDL-12182 fixing fixtures 2008-03-06 14:55:10 +00:00
stronk7
5383636fbb Changing wrong UNSIGNEDs to nulls in tests. MDL-11662
Merged from MOODLE_19_STABLE
2007-12-08 18:54:24 +00:00
nicolasconnault
f3ac8eb40c MDL-12182 Reverting to pre-upgrade in order to prepare a patch instead 2007-11-22 05:42:46 +00:00