447 Commits

Author SHA1 Message Date
Tim Hunt
d5bbc449e9 simpletestlib MDL-24637 ContainsTagWithAttribute(s) does not work reliabily with attribute values "0" and "" 2010-10-12 15:01:54 +00:00
David Mudrak
8dfb8a0343 MDL-24627 Unknown components are considered activity modules even if their name contains underscore 2010-10-12 12:56:59 +00:00
David Mudrak
e54c41da0b Improved moodlelib_test to illustrate wrong style of writing unit tests
Sorry for this irritating commit but I believe it is the most effective
way how to demonstrate the issue.
2010-10-12 12:56:41 +00:00
Andrew Davis
d84e7b7a94 gradebook MDL-24330 added a little visual of the structure of the grade categories created by the unit tests 2010-10-12 05:51:17 +00:00
David Mudrak
e0ebc88e9d MDL-24542 Removing convert_urls_into_links() from the core 2010-10-07 08:59:15 +00:00
Petr Skoda
365a594107 MDL-24321 switching to stdClass in /lib/ 2010-09-21 08:07:44 +00:00
Petr Skoda
25b0d32c38 MDL-24223 more unittests for html purifier 2010-09-21 07:20:12 +00:00
Penny Leach
90636e2b41 portfolio MDL-24251 make sure $PAGE context is set up properly 2010-09-17 09:39:56 +00:00
Petr Skoda
f71c7f00df MDL-24223 latest HTMLPurifier - finally removing most of our hacks 2010-09-16 20:02:54 +00:00
Petr Skoda
650462dfac MDL-24211 events subsystem cleanup and improvements
* handlers can be defined as internal or external
* external handlers are not called instantly when inside DB transaction
* code cleanup
* more robust detection of broken handlers
* refixed unit tests
* removing all pending events from 1.9 - these can not be processed due to encoding changes
* finally using real 'component' in handlers table
2010-09-15 15:55:18 +00:00
Petr Skoda
3650b83d9e MDL-23899 fixed asort to modify parameter instead of returning array - it now matches standard asort() 2010-09-05 12:57:59 +00:00
Petr Skoda
878bcc7f09 MDL-23899 locale aware asort + unit tests 2010-09-04 21:12:18 +00:00
Petr Skoda
a9637e7df4 MDL-14679 fixed a lot more old style uses of insert_record() 2010-09-03 17:47:41 +00:00
Petr Skoda
fb59f2f126 MDL-23184 CLEAN_PARAM explanation improved in unittests 2010-09-02 18:12:21 +00:00
Petr Skoda
b6059edcac MDL-22959 PARA_TEXT multilang whitelisting cleanup; the text is no longer being processed by kses or htmlpurifier - this should fix some recent regressions, any xhtml strict tweaking should be done in format_string() if necessary; unit tests included 2010-09-02 17:30:00 +00:00
Sam Hemelryk
abaece1e26 navigation MDL-23981 Fixed up simpletests for the navigation 2010-08-30 02:50:22 +00:00
Petr Skoda
389d17f9cc MDL-23985 removing all make_user_dir() and get_user_directories() usage 2010-08-29 09:50:36 +00:00
Petr Skoda
a9eac775bd MDL-23979 prevent logging of intentional errors when fetching feeds 2010-08-28 14:12:05 +00:00
Petr Skoda
f66af8875b MDL-23979 fixed non standard entities result 2010-08-28 12:32:58 +00:00
Petr Skoda
61ca8f7331 MDL-23979 fixed old style url init 2010-08-28 12:29:58 +00:00
Petr Skoda
c80705a8c9 MDL-23979 modole_page does not throw exception any more if context not set 2010-08-28 12:28:01 +00:00
Petr Skoda
04b32359bf MDL-23979 PARAM_CLEAN should not be used in new code at all ,there is nothing like universal cleaning, sorry 2010-08-28 12:25:14 +00:00
Petr Skoda
1dadfe15f2 MDL-23979 switching CFG->dirroot is a really bad idea, I borked this test when adding context parameter, but I am not going to fix it because moodle core functions can not work properly if you change dirroot on the fly, sorry; proper way would be to tweak the test class to use different direcotry 2010-08-28 12:20:09 +00:00
Petr Skoda
50999f1478 MDL-23979 adding missing context init code 2010-08-28 11:57:50 +00:00
Petr Skoda
dd1a9e4cd4 completion is trying to modify current db, it should use test prefix, but no idea if it really works; at least this change should help prevent damage on production sites 2010-08-26 10:01:39 +00:00
Tim Hunt
a194c2187b weblib MDL-22664 html_to_text should not strip images, it should replace them by their alt text.
Also, an new optional argument to html_to_text to control word-wrapping.
2010-08-04 17:40:01 +00:00
Jonathan Harker
355593f123 MDL-19418 Fix up a couple of stray deprecated ereg and eregi_replace calls. 2010-07-20 06:13:18 +00:00
Andrew Davis
c791bb4dfa gradebook MDL-23267 fixed 2 broken unit tests in lib/grade/simpletest 2010-07-14 08:42:14 +00:00
Petr Skoda
50a8bd6c1d MDL-14589 file api cleanup 2010-07-11 13:30:33 +00:00
Dongsheng Cai
e35194bec4 MDL-22982
1. rename repository.class to lib.php
2. fixed repository_callback.php
3. repository_ajax use moodle default exception handler
4. improve file_get_user_used_space performance
2010-07-05 07:27:49 +00:00
jerome mouneyrac
277c7a4033 file MDL-23075 fix format_postdata_for_curlcall when the params is an array of array of array 2010-07-05 02:56:04 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Petr Skoda
df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Tim Hunt
14f3ad159d moodlelib MDL-19418 fix bugs introduced when converting clean_param to preg.
Aumusingly, one of the bugs was detected by a unit test that was in Moodle 1.9, but
which for some reason was not in HEAD. I have tidied up the clean_param unit tests
and added a few more.
2010-05-12 12:05:59 +00:00
David Mudrak
fe6a248f5a MDL-22015 String identifiers are now validated, coding exception thrown otherwise 2010-04-28 00:06:43 +00:00
Tim Hunt
836c47d7fe MDL-22155 useful new method html_writer::nonempty_tag.
It outputs a tag only if the contents you pass is non-empty.

Also, unit tests for the basic parts of html_writer.
2010-04-23 10:34:07 +00:00
Sam Hemelryk
3406acdef9 navigation MDL-22044 Major navigation structure changes.
Navigation has now been re-ordered in accordance with http://docs.moodle.org/en/Development:Navigation_2.0_structure.
This has led to several changes in the way in which navigation is generated included API changes, most notably using the
navigation_nodes add method now returns the newly added node rather than the key.
At the same time the global_navigation_tree block has been renamed to navigation and settings_navigation_tree to settings.
2010-04-19 06:30:30 +00:00
Andrew Davis
11cca21ec3 unit tests MDL-22017 made test_usergetdate() work on machines in different timezones 2010-04-16 07:47:39 +00:00
Petr Skoda
cae07b1cdc MDL-22052 pruning pre-amos string related code 2010-04-10 19:28:34 +00:00
Petr Skoda
98da60215e MDL-22033 groupings now enabled unconditionally, groupmembersonly kept as experimental - this simplifies groups code logic a bit, user interface changes should not be significant because the groupings are not visible much until at least one created; hopefully the new description of groupmembersonly will have to preventsome gradebook complaints 2010-04-07 07:37:12 +00:00
Petr Skoda
ef330d9533 MDL-22015 AMOS - making room for new string manager 2010-04-01 18:50:28 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
David Mudrak
e6cf48d42a MDL-21694 re-enabling all get_string() performance tests 2010-03-29 15:20:40 +00:00
David Mudrak
e16f75bde3 Unit test did not preserve session 2010-03-21 19:44:57 +00:00
Eloy Lafuente
d294000348 MDL-21666 backup & restore caps - moving to new naming schema. More to come. 2010-02-19 17:50:14 +00:00
Petr Skoda
3e4735f459 MDL-21361 removed invalid unit tests for features that were removed or significantly redesigned 2010-02-18 18:24:26 +00:00
Sam Hemelryk
a3bbac8b76 navigation MDL-21604 Corrected simpletests after recent modifications 2010-02-18 06:42:29 +00:00
Petr Skoda
5be262b66f MDL-20204 converting html_list 2010-02-17 17:56:26 +00:00
Petr Skoda
929d7a8362 MDL-20204 converted paging_bar to new coding style + fixed regressions from recent commits 2010-02-17 16:59:41 +00:00
Petr Skoda
3ea5951efb MDL-20204 converting some more html_links 2010-02-16 15:27:16 +00:00