Tony Levi
edcb9e619f
MDL-48924 backup: Fix some get_file_packer() calls for enabletgzbackups
2015-01-29 22:53:01 +10:30
Adrian Greeve
9c630abcd7
MDL-47675 phpunit: Update unit tests to pass on MSSQL
...
Unit tests were failing on MSSQL. gc_collect_cycles() was
removed from the phpunit utils.php file to save time in running
the tests, but MSSQL doesn't clean up open files as well as
other databases.
This patch includes the garbage collection for the unit tests
that require it.
2014-10-23 08:54:35 +08:00
sam marshall
0e290bc008
MDL-47322 Availability: empty availability should be saved as null
2014-09-26 15:43:53 +01:00
Ankit Agarwal
0978aab839
MDL-39883 events: Trigger a module created event when duplicating a module
2014-06-18 16:02:23 +08:00
Marina Glancy
88c0e2f374
MDL-45357 events: unittest correction, event description change
2014-05-06 17:13:37 +08:00
Dan Poltawski
066f0395a6
Merge branch 'MDL-45365-master' of git://github.com/damyon/moodle
2014-05-01 14:52:02 +08:00
Damyon Wiese
6a20bfa06d
MDL-45365 Courselib unit tests: cmid -> instanceid confusion
...
Yet again an instanceid is being passed instead of a cmid.
2014-05-01 14:00:40 +08:00
Petr Skoda
3373120f60
MDL-43557 fix assertion for course section event description
2014-04-30 11:44:56 +08:00
Mark Nelson
02a5a4b2ff
MDL-43557 events: fixed minor issues in existing events
2014-04-29 19:16:11 -07:00
Sam Hemelryk
48dba530c6
Merge branch 'MDL-45229-master' of git://github.com/FMCorz/moodle
2014-04-29 08:40:16 +12:00
Simey Lameze
9e533215bd
MDL-44627 events: Triggering event course module updated actions.
2014-04-28 12:11:24 +08:00
Frederic Massart
1f6988bb3b
MDL-45229 event: Trigger event when section visibility changes
2014-04-28 11:27:47 +08:00
Frederic Massart
be9fb21191
MDL-45229 event: Validate sectionnum in course_section_updated
2014-04-28 11:27:44 +08:00
Marina Glancy
158379e173
MDL-40907 events: additional legacy logging for module update/add events"
2014-04-08 13:45:13 +08:00
Marina Glancy
957944dca8
MDL-40907 events: view list of resources in course
2014-04-08 13:45:09 +08:00
sam marshall
8d1f33e122
MDL-44070 Conditional availability enhancements (6): core changes
...
Changes core code to use new API instead of the old one when
checking user access to activities and sections.
Includes changes to other libraries that are necessary after
adding the availability system and removing old conditional tables
etc.
2014-04-07 20:11:48 +01:00
Ankit Agarwal
b63f773296
MDL-44717 events: Fix multiple issues in events
...
Fix various incorrect urls
Fix incorrect phpdocs and other minor code style issues
Fix missing/incorrect strings
AMOS BEGIN
MOV [eventblogassociationcreated, core_blog],[eventblogassociationadded, core_blog]
AMOS END
2014-04-01 15:08:34 +08:00
Mark Nelson
cc033d48b5
MDL-44316 core_tag: changed the API to accept a contextid and component
2014-03-22 13:50:08 -07:00
Dan Poltawski
f1284d3cfe
Merge branch 'MDL-44272-master' of git://github.com/ankitagarwal/moodle
2014-03-04 15:59:55 +08:00
Marina Glancy
ae29096b5b
MDL-44321 unittest correction since snapshot is not a reference to object any more.
2014-03-04 14:56:20 +08:00
Ankit Agarwal
df9a6c0114
MDL-44272 events: Fix incorrect urls in course module events
2014-02-24 15:08:22 +08:00
Rajesh Taneja
623a32e50d
MDL-43736 Events: Updated unit test to test context not used in event
2014-01-29 11:39:50 +08:00
Mark Nelson
7cbb5070f5
MDL-40909 enrol_imsenterprise: removed 'new' add_to_log call
...
Here we are replacing the unnecessary code used to create a course with
a call to create_course(), which triggers the event 'course_created'.
Nothing more is needed.
2014-01-27 19:52:55 -08:00
Sam Hemelryk
a59a423926
Merge branch 'MDL-42084-master' of git://github.com/sammarshallou/moodle
2013-12-03 11:12:34 +13:00
Ankit Agarwal
542d3820d1
MDL-42767 events: Remove ob_clean from tests
2013-11-19 16:34:49 +08:00
sam marshall
db0f0097e8
MDL-42084 Unit tests: Remove unnecessary 'clear time limit change' lines
2013-11-06 16:40:04 +00:00
Rajesh Taneja
0d22c24829
MDL-42557 Events: added idnumber to course_deleted event data
2013-10-28 16:16:25 +08:00
Damyon Wiese
869dd1fc6c
Merge branch 'MDL-29663_alt' of https://github.com/merrill-oakland/moodle
2013-10-09 09:39:09 +08:00
Eric Merrill
bd8f5d459d
MDL-29663 forum: Replace constant FORUM_TRACKING_ON with FORUM_TRACKING_FORCED
...
Commit for MDL-29663 that renames the FORUM_TRACKING_ON constant
to FORUM_TRACKING_FORCED to allow easier and more consistant reading.
FORUM_TRACKING_ON retained but marked depreciated.
2013-10-08 08:04:55 -04:00
Sam Hemelryk
5aff38e4d8
MDL-31830 course: renamed functions for consistency
...
* course_move_by_one => course_change_sortorder_by_one
* course_move_after_course => course_move_after_course
* helper::action_course_move_after_course => helper::action_course_change_sortorder_after_course
* helper::action_course_moveup => helper::action_course_change_sortorder_up_one
* helper::action_course_movedown => helper::action_course_change_sortorder_down_one
* helper::action_course_moveup_by_record => helper::action_course_change_sortorder_up_one_by_record
* helper::action_course_movedown_by_record => helper::action_course_change_sortorder_down_one_by_record
* helper::action_category_movedown => helper::action_category_change_sortorder_down_one
* helper::action_category_movedown_by_id => helper::action_category_change_sortorder_down_one_by_id
* helper::action_category_moveup => helper::action_category_change_sortorder_up_one
* helper::action_category_moveup_by_id => helper::action_category_change_sortorder_up_one_by_id
* coursecat::move_by_one => coursecat::change_sortorder_by_one
2013-10-07 10:22:36 +13:00
Sam Hemelryk
5dc361e16e
MDL-31830 core_course: new course category management interface
...
* Implemented a new course and category management page.
* Deprecated the old management interface.
* Unit tests to cover the new API and core functions.
* Behat tests to cover the new interface.
2013-10-07 10:21:41 +13:00
Ankit Agarwal
b9b994c7d2
MDL-39959 events: Add unit tests for course module events
...
test_course_module_created_event()
test_course_module_created_event_exceptions()
test_course_module_updated_event()
test_course_module_updated_event_exceptions()
test_course_module_deleted_event()
test_course_module_deleted_event_exceptions()
2013-09-16 13:42:37 +08:00
Rajesh Taneja
3a11e2d2d6
MDL-41557 Events: Fixed event data snapshot to save valid data
2013-09-13 16:05:23 +08:00
Marina Glancy
e2e9cb6a14
MDL-37028 Fixed bug, orphaned modules are moved to the 0-section
2013-09-13 10:28:52 +10:00
Damyon Wiese
749ce98e63
MDL-37028 Integrity check for course modules and sections
...
This commit reinstates:
commit 0bac49dc19
Author: Marina Glancy <marina@moodle.com >
Date: Tue Sep 3 17:14:13 2013 +1000
MDL-37028 Integrity check for course modules and sections
If section mentioned in 'orphaned' module does not exist module is added to the first available section. Also corrected whitespaces
commit 1f0a9ce48b
Author: Marina Glancy <marina@moodle.com >
Date: Mon Aug 12 14:06:48 2013 +1000
MDL-37028 Integrity check for course modules and sections
created function, unittest, build-in quick integrity check on each call to rebuild_course_cache()
also added CLI script
2013-09-11 10:47:49 +08:00
Eloy Lafuente (stronk7)
34ac96bf6d
Merge branch 'wip-MDL-41508-master' of git://github.com/marinaglancy/moodle
2013-09-10 14:09:34 +02:00
Damyon Wiese
eceecb72f3
Revert "MDL-37028 Integrity check for course modules and sections"
...
This is failing unit tests.
This reverts commit 0bac49dc19 .
This reverts commit 1f0a9ce48b .
2013-09-10 14:34:07 +08:00
Damyon Wiese
4fae13bb5e
Merge branch 'wip-MDL-37028-master' of git://github.com/marinaglancy/moodle
2013-09-10 12:51:33 +08:00
Marina Glancy
4a3fb71c4f
MDL-41436 Removing references to fields course.modinfo, sectioncache
...
Also add the field cacherev to the lists of default fields in course retrieval functions
2013-09-10 14:11:51 +10:00
Mark Nelson
c3bf6181aa
MDL-41417 course: allow the use of duplicated idnumbers if they existed before fix
2013-09-06 15:18:23 +08:00
Francis Devine
5536a5617c
MDL-41417 course: prevent duplicate idnumbers being used when updating a course
2013-09-06 11:34:04 +08:00
Marina Glancy
0bac49dc19
MDL-37028 Integrity check for course modules and sections
...
If section mentioned in 'orphaned' module does not exist module is added to the first available section. Also corrected whitespaces
2013-09-03 17:14:13 +10:00
Dan Poltawski
2793260fc0
MDL-41256 course tests: improve robustness
...
* Fail if an exception isn't recieved
* Don't allow the possibility of an undefined variable being tested
2013-09-03 11:01:15 +08:00
Dan Poltawski
c6569641e7
Merge branch 'MDL-41256-master' of https://github.com/mackensen/moodle
2013-09-03 10:51:27 +08:00
Marina Glancy
aec8fe2f9b
MDL-41508 move_courses() bug fix and DB query improvement
2013-08-30 16:47:25 +10:00
Marina Glancy
1f0a9ce48b
MDL-37028 Integrity check for course modules and sections
...
created function, unittest, build-in quick integrity check on each call to rebuild_course_cache()
also added CLI script
2013-08-30 16:41:13 +10:00
Marina Glancy
d55f05ef43
MDL-41181 function moveto_module does not modify properties of object
...
instead it returns the new value for module visibility
2013-08-27 15:36:40 +10:00
Marina Glancy
955d91c698
MDL-41181 No need to reset modinfo cache after moveto_module()
...
it is already reset inside the function
2013-08-27 15:36:21 +10:00
Charles Fulton
9930e4267c
MDL-41256 course: improved debugging on course creation
2013-08-26 06:59:33 -07:00
Mark Nelson
9e2d9135f6
MDL-39957 course: added missing assertions for events
...
This occurred when an add_to_log call, with no associated legacy event,
was replaced with a new event. We should still call assertEventLegacyData
even though there is no legacy event data to compare with, simply ensure
that the expected data was passed.
2013-08-20 15:59:11 +08:00