Dan Poltawski
f186ad1f90
Merge branch 'wip-MDL-35339-master' of git://github.com/marinaglancy/moodle
2012-10-15 17:19:44 +08:00
Dan Poltawski
348be850c9
Merge branch 'w42_MDL-35854_m24_usergenerator' of git://github.com/skodak/moodle
2012-10-15 16:03:53 +08:00
Aparup Banerjee
de5a44eb3a
Merge branch 'w42_MDL-36031_m24_messagesink' of git://github.com/skodak/moodle
2012-10-15 14:36:02 +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
Marina Glancy
722e6ba947
MDL-35339 Deprecate add_mod_to_section(), create new function course_add_cm_to_section()
...
Function add_mod_to_section() has very confusing arguments when object looks like record from
table course_modules but field ->section refers to relative section number (course_sections.section).
In table course_modules the field section refers to course_sections.id.
Also add_mod_to_section() does not update table course_modules and does not call rebuild_course_cache()
which developer can forget to do afterwards.
- Added function course_add_cm_to_section()
- In the core code add_mod_to_section() is replaced with course_add_cm_to_section()
- Function add_mod_to_section() is deprecated
2012-10-15 14:08:13 +08:00
Eloy Lafuente (stronk7)
990853afbe
Merge branch 'wip-MDL-25290-m24-compact' of git://github.com/samhemelryk/moodle
2012-10-14 23:32:40 +02:00
Petr Škoda
4c9e03f0ac
MDL-36031 implement message redirection for unit testing
2012-10-13 20:00:54 +02:00
Petr Škoda
fe67134eaa
MDL-35854 fix username generator
...
This eliminates infinite loop and also fixes potentially invalid email derived from usernames created from unicode first/last name.
2012-10-13 09:57:35 +02:00
Eloy Lafuente (stronk7)
2beba29760
MDL-35898 test reset: tidyup comments (forgot to amend previous commit, grrr).
2012-10-09 11:56:42 +02:00
Eloy Lafuente (stronk7)
02c4953ea5
Merge branch 'w41_MDL-35898_m24_coursereset' of git://github.com/skodak/moodle
2012-10-09 11:54:15 +02:00
Petr Škoda
13d5c93872
MDL-35898 include static course caches in test resets
2012-10-09 09:43:08 +02:00
Sam Hemelryk
34c84c723a
MDL-25290 cache: Added cache locking plugin and converted locking implementations to that
2012-10-08 09:53:51 +13:00
Sam Hemelryk
52642d0d24
MDL-25290 cache: Fixed up issue with unit test blowing away cachedir
2012-10-08 09:53:51 +13:00
Petr Škoda
d03d5113f9
MDL-35714 run gc before test reset
2012-10-06 10:03:28 +02:00
Eloy Lafuente (stronk7)
5ceded2869
Merge branch 'w38_MDL-35465_m24_cohortscleanup' of git://github.com/skodak/moodle
2012-09-18 16:55:42 +02:00
Petr Škoda
94c9db5493
MDL-35479 document unit test debugging() changes
2012-09-17 13:00:36 +02:00
Petr Škoda
ef5b5e051e
MDL-35479 debugging support in our phpunit integration
2012-09-17 11:27:57 +02:00
Petr Škoda
4729332b15
MDL-35465 add basic cohort lib tests and generator
2012-09-16 20:23:19 +02:00
Petr Škoda
a46e11b5df
MDL-35318 add lang revision counter and improve PHPUnit test reset
...
We need this for hacks that need to find out if strings changed.
2012-09-09 12:15:30 +02:00
Eloy Lafuente (stronk7)
77dd8ab1de
Merge branch 'w34_MDL-34893_m24_phpunitparams' of git://github.com/skodak/moodle
2012-08-21 21:18:15 +02:00
Eloy Lafuente (stronk7)
fffb9b9064
Merge branch 'w34_MDL-34912_m24_description' of git://github.com/skodak/moodle
2012-08-21 02:39:10 +02:00
Petr Škoda
2ea6d5686f
MDL-34893 use standard options in Hint_ResultPrinter
...
This is a very nasty hack!
2012-08-19 22:09:46 +02:00
Petr Škoda
4a38e65977
MDL-34912 fix invalid descriptionformat default handling
2012-08-18 09:52:31 +02:00
Tim Hunt
85b72a7511
MDL-34889 phpunit: progress output in util.php --drop.
...
It is slow for me, and it is nice to know that something is going on.
2012-08-16 17:13:59 +01:00
Tim Hunt
6d3b1e1f9d
MDL-34885 phpunit: better cygwin detection.
...
For some reason, on my computer, $_SERVER['SHELL'] was not set, so I
changed the test to also consider $_SERVER['TERM']. This now works for
me.
2012-08-14 14:06:24 +01:00
Tim Hunt
564fcb3bee
MDL-34484 unit tests: stop phpunit using testcase names as class names
2012-07-23 11:08:37 +01:00
Petr Škoda
d606bee9ce
MDL-34147 use cygwin style paths in phpunit hints
2012-07-06 07:58:44 +02:00
Marina Glancy
6fd1cf05b0
MDL-33550 reset repository static cache between unit tests
2012-06-14 16:21:04 +08:00
Sam Hemelryk
c224cc643b
Merge branch 'w23_MDL-33557_m23_initpath' of git://github.com/skodak/moodle
2012-06-08 11:53:43 +12:00
Petr Skoda
5f9ba165de
MDL-33557 fix path in PHPUnit init hint
...
This resolves problem when execution phpunit in subdirectory.
2012-06-06 12:29:20 +02:00
Petr Skoda
bd672f7830
MDL-33436 include phpunit printer file from our lib.php
...
The problem is that the phpunit.xml does not support relative links.
2012-06-02 21:48:26 +02:00
Petr Skoda
f32ecd2fbe
MDL-33075 find correct location of failed test case classes
2012-05-19 18:38:51 +02:00
Eloy Lafuente (stronk7)
dd420abadf
Merge branch 'MDL-24419-master' of git://github.com/sammarshallou/moodle
...
Conflicts:
lib/db/upgrade.php
lib/phpunit/lib.php
version.php
Fixed:
lib/db/upgrade.php - duplicate course->sectioncache add code
lib/db/install.xml - cleanup needed because xmldb editor was not used
lib/phpunit/classes/util.php - cleanup $GROUPLIB_CACHE on test reset
2012-05-16 23:53:47 +02:00
sam marshall
ae3fbf7b06
MDL-24419 (2): Moved groupings cache to get_all_groupings function
...
There was a static cache inside course/lib.php. I need to access this
information in other places, so to avoid making two queries, I am
moving the cache into the groups_get_all_groupings function instead.
2012-05-14 11:15:15 +01:00
Dan Poltawski
36e686a07e
MDL-32923 phpunit: make copy/paste easier
2012-05-14 17:38:58 +08:00
Dan Poltawski
7e86180956
MDL-32923 phpunit: be a bit more verbose about re-run cmmand
2012-05-14 15:48:26 +08:00
Dan Poltawski
a5fefe0bbd
Merge branch 'w20_MDL-32923_m23_phpunithint' of git://github.com/skodak/moodle
2012-05-14 15:46:23 +08:00
Petr Skoda
ed7259d112
MDL-32923 on failure print hint how to execute the failed test case
2012-05-13 09:56:57 +02:00
Petr Skoda
d59ef9c5ab
MDL-32926 exorcise setUser(2) evil from phpunit
2012-05-12 21:42:07 +02:00
Petr Skoda
08ad325702
MDL-32960 put phpunit integration tests to one test suite and execute them first
2012-05-12 21:33:23 +02:00
Petr Skoda
7e7cfe7a03
MDL-32960 refactor phpunit integration to one class per file structure
2012-05-12 20:53:48 +02:00
Tim Hunt
667c090728
MDL-32924 improve unit test performance.
2012-05-10 16:22:09 +01:00
Dan Poltawski
0dda790c05
Merge branch 'w18_MDL-32628_m23_avatarperf2' of git://github.com/skodak/moodle
...
Conflicts:
lib/db/upgrade.php
version.php
2012-05-04 09:28:41 +08:00
Eloy Lafuente (stronk7)
f171c37dda
Merge branch 'w18_MDL-32697_m23_oci' of git://github.com/skodak/moodle
2012-05-03 12:22:22 +02:00
Petr Skoda
8d741d4dfc
MDL-32697 use current database sequences instead of global scope
...
Credit goes to Eloy, thanks!
2012-05-03 10:52:19 +02:00
Dan Poltawski
08b5ac5aae
Merge branch 'w18_MDL-32587_m23_phpunitindividual' of git://github.com/skodak/moodle
2012-05-03 16:11:00 +08:00
Petr Skoda
62f9a5c4b6
MDL-32587 fix --buildcomponentconfigs compatibility with Windows
2012-05-03 09:34:35 +02:00
Petr Skoda
a090587234
MDL-32697 improve MySQL and Oracle test reset performance
2012-05-01 14:35:23 +02:00
Sam Hemelryk
75c9c54be4
Merge branch 'w18_MDL-32587_m23_phpunitindividual' of git://github.com/skodak/moodle
2012-05-01 13:41:37 +12:00