Commit graph

455 commits

Author SHA1 Message Date
sam marshall
637da99edb MDL-24419 (3): Add new parameter to format_float for shorter display 2012-05-14 11:15:16 +01:00
Petr Skoda
b136a25b16 MDL-32961 try to use native grep when searching for DONOT...COMMIT tags 2012-05-12 23:05:42 +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
Aparup Banerjee
83c9d449e0 MDL-29624 Media embedding system : phpdoc tweaks. 2012-05-10 10:52:41 +08:00
Aparup Banerjee
e1e3fa217f Merge branch 'MDL-29624-master' of git://github.com/sammarshallou/moodle 2012-05-10 10:52:32 +08:00
sam marshall
daefd6eb97 MDL-29624 Media embedding system, part 1: new API and filter changes
Includes new API in medialib.php and core_media_renderer in outputrenderers.php.
Enable/disable settings moved from filter to systemwide appearance page.
Filter changed to use new API.

AMOS BEGIN
 MOV [flashanimation,filter_mediaplugin],[flashanimation,core_media]
 MOV [flashanimation_help,filter_mediaplugin],[flashanimation_desc,core_media]
 MOV [flashvideo,filter_mediaplugin],[flashvideo,core_media]
 MOV [flashvideo_help,filter_mediaplugin],[flashvideo_desc,core_media]
 MOV [html5audio,filter_mediaplugin],[html5audio,core_media]
 MOV [html5audio_help,filter_mediaplugin],[html5audio_desc,core_media]
 MOV [html5video,filter_mediaplugin],[html5video,core_media]
 MOV [html5video_help,filter_mediaplugin],[html5video_desc,core_media]
 MOV [mp3audio,filter_mediaplugin],[mp3audio,core_media]
 MOV [mp3audio_help,filter_mediaplugin],[mp3audio_desc,core_media]
 MOV [legacyquicktime,filter_mediaplugin],[legacyquicktime,core_media]
 MOV [legacyquicktime_help,filter_mediaplugin],[legacyquicktime_desc,core_media]
 MOV [legacyreal,filter_mediaplugin],[legacyreal,core_media]
 MOV [legacyreal_help,filter_mediaplugin],[legacyreal_desc,core_media]
 MOV [legacywmp,filter_mediaplugin],[legacywmp,core_media]
 MOV [legacywmp_help,filter_mediaplugin],[legacywmp_desc,core_media]
 MOV [legacyheading,filter_mediaplugin],[legacyheading,core_media]
 MOV [legacyheading_help,filter_mediaplugin],[legacyheading_desc,core_media]
 MOV [sitevimeo,filter_mediaplugin],[sitevimeo,core_media]
 MOV [sitevimeo_help,filter_mediaplugin],[sitevimeo_desc,core_media]
 MOV [siteyoutube,filter_mediaplugin],[siteyoutube,core_media]
 MOV [siteyoutube_help,filter_mediaplugin],[siteyoutube_desc,core_media]
AMOS END
2012-05-09 18:29:29 +01:00
sam marshall
ffe4de973b MDL-29624 Media embedding system, part 0: Add get_path() to moodle_url
(It may not seem directly related, but this function is needed for the
media embedding system.
2012-05-09 18:22:12 +01:00
Dan Poltawski
2c3d986894 MDL-32505 lib/tests: fix unit test using removed table 2012-05-04 10:53:04 +08:00
Dan Poltawski
b9bcdb54da MDL-32505 course: drop course_display table and settings 2012-05-04 10:52:56 +08: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
Petr Skoda
3db67789a1 MDL-32683 assert $CFG->slasharguments is enabled in new installs
Thanks Dan Poltawski for spotting it.
2012-05-07 13:05:42 +02:00
Petr Skoda
fcc4f23d0d MDL-32683 fix outdated tests 2012-05-07 12:49:26 +02:00
Eloy Lafuente (stronk7)
03764014af MDL-32234 Library: usergetdate tests moved to assertSame()
(to check both type and value)
2012-05-03 00:52:25 +02:00
Eloy Lafuente (stronk7)
150166d371 Merge branch 'wip-mdl-32234' of git://github.com/rajeshtaneja/moodle 2012-05-03 00:35:34 +02:00
Petr Skoda
4d254790c4 MDL-32628 add revision for user avatar images
This should finally resolve all avatar caching issues and should also help with performance.
2012-04-30 23:36:47 +02:00
Rajesh Taneja
4a9c429b0c MDL-32234 Library: usergetdate return different values when timezone is set
usergetdate should return consistent values for different timezone. There are
two return path
1. If timezone is servertime, it returns getdate
2. If timezone other then servertime, it use gmstrftime, which returns string and
   values with leading zero.
In second case, leading zero's are removed and values are type casted. One major fix
is with yday, getdate returns 0 through 365, whereas %j returns 001 through 366. This
has been fixed as well.
2012-04-30 10:59:01 +08:00
Petr Skoda
80705c1000 MDL-32628 add user_picture->get_url() tests 2012-04-27 15:03:24 +02:00
Petr Skoda
bd319d12c2 MDL-30686 fix typo
Thanks Dan Poltawski!
2012-04-27 13:39:18 +02:00
Petr Skoda
f0202ae9a2 MDL-30686 improve accuracy of qualified_me() by trying PAGE->url first
This should help SSL proxies and returning to current page after require_login().
2012-04-27 13:39:18 +02:00
Dan Poltawski
8e8f247f2c Merge branch 'w17_MDL-32427_m23_protocols' of git://github.com/skodak/moodle 2012-04-24 10:27:15 +08:00
Dan Poltawski
a0a87e85f0 Merge branch 'w17_MDL-32477_m23_cloneperm' of git://github.com/skodak/moodle 2012-04-23 16:35:26 +08:00
Petr Skoda
d72bb48662 MDL-32427 add HTML Purifier allowed scheme tests 2012-04-23 10:30:00 +02:00
Dan Poltawski
f488088109 Merge branch 'w17_MDL-32569_m23_phpunit5' of git://github.com/skodak/moodle 2012-04-23 11:21:06 +08:00
Dan Poltawski
c4974b077a Merge branch 'w17_MDL-32576_m23_markdown' of git://github.com/skodak/moodle 2012-04-23 10:09:02 +08:00
Petr Skoda
e4ba066f1d MDL-32576 import Markdown 1.2.5 2012-04-21 22:17:41 +02:00
Petr Skoda
bc5c10f69e MDL-32575 import latest Typo3 libs for textlib and other improvements
Includes new textlib reset, new test for faulty integer lower/upper casing.
2012-04-21 21:31:03 +02:00
Petr Skoda
37ba2528c1 MDL-32569 convert the remaining tests 2012-04-21 17:47:30 +02:00
Petr Skoda
4ca04fb58b MDL-32569 remove remaining references to simpletest and improve events test 2012-04-21 17:08:30 +02:00
Petr Skoda
b38d2ce7f8 MDL-32569 move other test related files to new tests directory 2012-04-21 16:11:36 +02:00
Petr Skoda
9a251f1884 MDL-32477 tests for cloning of permissions 2012-04-19 22:09:32 +02:00
Petr Skoda
4059b64510 MDL-32400 convert completion tests 2012-04-15 12:23:41 +02:00
Petr Skoda
c691274bf9 MDL-32323 use new loadDataSet in mod_data and fix typos in last commit 2012-04-10 21:07:56 +02:00
Petr Skoda
e396e8ed5f MDL-32323 implement data set loader support in advanced_testcase 2012-04-10 20:58:27 +02:00
Petr Skoda
95dcf96559 MDL-32323 allow mocking of global $DB 2012-04-10 15:27:13 +02:00
Petr Skoda
7620602cc2 MDL-32323 improve transaction handling in PHPUnit test cases 2012-04-10 15:27:10 +02:00
Petr Skoda
a0c5affee6 MDL-32323 test detection of changes and improve coding style 2012-04-10 15:27:05 +02:00
Petr Skoda
8b5413ccf2 MDL-32323 rework db reset once more, now with tests 2012-04-10 15:27:05 +02:00
Petr Skoda
3c4c51891c MDL-32323 improve phpunit data generators 2012-04-10 15:27:02 +02:00
Petr Skoda
7b0ff21385 MDL-32323 experimental web UI for execution of PHPUnit tests
It is not localised intentionally because only developers should use it…
2012-04-10 15:27:01 +02:00
Petr Skoda
d78e33488a MDL-32149 adding test changes from MDL-32081 2012-04-04 01:31:43 +02:00
Petr Skoda
0348088621 MDL-32149 tests for conditional activities 2012-04-03 22:31:03 +02:00
Petr Skoda
e72ea4a5e4 MDL-32149 add basic file picker test and new way to set current user via int
Please note that testing of individual plugins should not be done in repositorylib_test.php.
2012-04-03 22:31:01 +02:00
Petr Skoda
f4fd0a13d1 MDL-32149 navigation tests 2012-04-03 22:31:01 +02:00
Petr Skoda
7514f9c243 MDL-32149 allow defining of PHPUNIT_LONGTEST from /config.php and improve acceslib tests 2012-04-03 22:30:59 +02:00
Petr Skoda
354b214c9f MDL-32149 courselib tests and support for generation of course sections 2012-04-03 22:30:57 +02:00
Petr Skoda
4b02743182 MDL-32149 improve testcase naming and list in config file 2012-04-03 22:30:57 +02:00
Petr Skoda
7ddef99455 MDL-32149 some more cleanup and testing of PHPUnit asserts 2012-04-03 22:30:56 +02:00
Petr Skoda
1cbf2a20ca MDL-32149 setUp() and tearDown() are supposed to be 'protected', add missing blog testcase 2012-04-03 22:30:56 +02:00
Petr Skoda
dbf5a44798 MDL-32149 add backup tests and dropping of extra tables 2012-04-03 22:30:54 +02:00