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
Damyon Wiese
5a10d2a7ae
Merge branch 'wip-mdl-40043' of git://github.com/rajeshtaneja/moodle
...
Conflicts:
course/tests/courselib_test.php
lang/en/moodle.php
2013-08-20 14:40:42 +08:00
Rajesh Taneja
ed29bf0f66
MDL-40043 Events API: Added course_section_updated event to replace add_to_log
2013-08-20 14:07:35 +08:00
Mark Nelson
e5959771b2
MDL-39957 course: added PHPUnit assertions for when a course_updated event is triggered by moving a course
2013-08-15 18:14:08 +08:00
Mark Nelson
02cbb621d6
MDL-39957 course: added PHPUnit test for the new course_restored event
2013-08-15 18:14:08 +08:00
Mark Nelson
7240cd92f9
MDL-39957 course: added PHPUnit test for the new course_category_deleted event
2013-08-15 18:14:08 +08:00
Mark Nelson
ec8f23de3b
MDL-39957 course: added PHPUnit test for the new course_content_deleted event
2013-08-15 18:14:08 +08:00
Mark Nelson
bc3c5b222a
MDL-39957 course: added PHPUnit test for the new course_deleted event
2013-08-15 18:14:07 +08:00
Mark Nelson
4fd391d515
MDL-39957 course: added PHPUnit test for the new course_updated event
2013-08-15 18:14:07 +08:00
Mark Nelson
35ad79e20d
MDL-39957 course: added PHPUnit test for the new course_created event
2013-08-15 18:14:07 +08:00
Sam Hemelryk
615cf2d15a
Merge branch 'MDL-41045-master' of git://github.com/sammarshallou/moodle
2013-08-13 10:19:34 +12:00
sam marshall
5523c34462
MDL-41045 course_add_cm_to_section should not test for sections unless necessary
2013-08-07 17:17:04 +01:00
Petr Škoda
8252b7c291
MDL-40901 standardise core test case class and file names
...
This finally allows us to type only the class name when executing individual core test cases.
2013-08-04 22:10:31 +02:00
Dan Poltawski
e52c1ea65d
MDL-40604 course: add test to cover course_delete_module
2013-07-17 14:11:10 +08:00
Damyon Wiese
7f198356ef
MDL-38359 courselib: Fix unit tests
...
The courselib tests have hardcoded test data sets for forum and assign
modules that need to be updated every time we add a new feature.
2013-06-11 16:20:55 +08:00
Damyon Wiese
69a0e65c56
MDL-38315 Fix unit tests for module completion
2013-05-06 23:27:40 +08:00
Damyon Wiese
6aa38ef89a
Merge branch 'wip-MDL-38708-master' of git://github.com/marinaglancy/moodle
2013-04-05 09:19:09 +08:00
Marina Glancy
97d5e39c49
MDL-38708 Changed test to be more accurate
2013-04-05 10:52:09 +11:00
Damyon Wiese
9ab0aece49
Merge branch 'MDL-38700-master' of git://github.com/danpoltawski/moodle
...
Conflicts:
course/tests/courselib_test.php
2013-04-02 12:48:08 +08:00
Aparup Banerjee
be0eacf883
Merge branch 'MDL-38564-master' of git://github.com/ankitagarwal/moodle
2013-03-26 17:20:01 +08:00
Ankit Agarwal
bf6b3c7a8a
MDL-38564 Adding unit tests for the functions compare_activities_by_time_asc() and compare_activities_by_time_desc()
2013-03-26 16:12:01 +08:00
Dan Poltawski
1fff1b8cba
MDL-38700 course: add tests for moveto_module()
...
* Test visibility when moving around hidden sections
* Test for visiblity changes when moving around in the same sections.
2013-03-26 15:03:32 +08:00
Marina Glancy
b28bb7e8c7
MDL-38147 Added coursecatlib_test.php, changed other tests to use coursecat::create() for creating category
2013-03-25 13:20:39 +11:00
Jerome Mouneyrac
7cb0ea2c37
MDL-37079 remove TODO, add . in comments
2013-03-18 14:41:37 +08:00
Jerome Mouneyrac
7bf4f6e999
MDL-37079 Added many assertEquals + generic test function (easy to test new module) + now process next advanced grading screens
2013-03-18 14:41:36 +08:00
Jerome Mouneyrac
dd5d933f30
MDL-37079 create/update_module()
2013-03-18 14:41:35 +08:00
Eloy Lafuente (stronk7)
9515c34ee6
Merge branch 'wip-MDL-30669-master' of git://github.com/abgreeve/moodle
2013-02-26 09:46:13 +01:00
Adrian Greeve
b7d3bb0fc6
MDL-30669 - blocks: Unit tests for course_page_type_list()
2013-02-26 10:21:45 +08:00
Andrew Robert Nicols
3f61e4cbf3
MDL-37939 Course: Add additional unit tests to confirm that module move occurs correctly
2013-02-15 21:28:50 +00:00
Dan Poltawski
319d937602
Revert "Merge branch 'wip-MDL-31750-master' of git://github.com/abgreeve/moodle"
...
This reverts commit 8361f557a1
,
2b9e957a27
and
fae51910bf
2013-01-10 11:17:33 +08:00
Eloy Lafuente (stronk7)
8361f557a1
Merge branch 'wip-MDL-31750-master' of git://github.com/abgreeve/moodle
...
Conflicts:
course/tests/courselib_test.php
2013-01-09 01:31:50 +01:00
Frederic Massart
f7d6e65032
MDL-36417 course: Unit tests for section visibility
2012-11-14 11:22:20 +08:00
Adrian Greeve
2b9e957a27
MDL-31750 - course: Unit tests for the function can_move_courses_to_category().
2012-11-13 09:43:43 +08:00
Marina Glancy
b46be6adf4
MDL-35339 Better cache reset for get_fast_modinfo(), allow exec get_fast_modinfo($courseid)
2012-10-15 14:08:15 +08:00
Marina Glancy
384c3510a9
MDL-35339 Course functions unit tests
2012-10-15 14:08:14 +08:00
Petr Skoda
3a222db215
MDL-35382 fix random course test failures
2012-10-06 13:27:04 +02:00
Frederic Massart
f70bfb848b
MDL-35301 Unit Tests: Basic test for create_course()
2012-09-07 11:24:02 +08:00
Dan Poltawski
3d8fe4820a
MDL-33623 - course: add unit tests for section moving
...
Including tracking of the course marker updates
2012-06-11 11:46:22 +08:00
Rajesh Taneja
eb01aa2c34
MDL-33367 course: move_section reuse move_section_to function
...
Conflicts:
course/lib.php
2012-06-05 09:34:14 +08:00
Andrew Robert Nicols
b1a8aa73b5
MDL-29044: Move course category creation to a separate function
2012-04-24 10:57:12 +01:00
Petr Skoda
354b214c9f
MDL-32149 courselib tests and support for generation of course sections
2012-04-03 22:30:57 +02:00