Commit graph

13953 commits

Author SHA1 Message Date
Petr Skoda
4b17369567 MDL-32323 all-in-one PHPUnit init script 2012-04-10 15:27:01 +02:00
Petr Skoda
6aaae357c9 MDL-32323 add schema for phpunit.xml configuration file
Credit goes to https://github.com/gooh/phpunit-schema, thanks Gordon Oheim!
2012-04-10 15:27:01 +02:00
Petr Skoda
d2b357b923 MDL-32368 fix pg to always use old bytea encoding 2012-04-10 15:25:20 +02:00
Petr Skoda
4bf855771f MDL-32365 fix hardcoded auto-increment on id columns 2012-04-10 15:22:16 +02:00
Petr Skoda
3b4f7338a7 MDL-32365 fix invalid checking for returned id when custom sequence used 2012-04-10 15:22:15 +02:00
Tony Levi
22dc32042a MDL-32379: Fix memory leak in session_set_user
session_set_user mistakingly sets the session user to be a reference to the passed object.

This is a problem when alot of data is attached to the session user object,
as any process holding a list of these users will use more memory each time it changes user.
2012-04-10 14:07:59 +09:30
Dan Poltawski
098312b149 Merge branch 'wip-mdl-30051' of git://github.com/rajeshtaneja/moodle 2012-04-10 11:05:59 +08:00
Sam Hemelryk
0ccb4dcce0 Merge branch 'MDL-32349-master' of git://github.com/sammarshallou/moodle 2012-04-10 12:38:40 +12:00
Sam Hemelryk
5bfeb5ffd3 Merge branch 'MDL-30843_b' of git://github.com/rwijaya/moodle 2012-04-10 12:34:37 +12:00
Sam Hemelryk
859a181627 Merge branch 'wip-mdl-32270' of git://github.com/rajeshtaneja/moodle 2012-04-10 10:53:34 +12:00
Sam Hemelryk
aef4aafa0b Merge branch 'w15_MDL-32263_m23_enroladmin' of git://github.com/skodak/moodle 2012-04-10 10:48:34 +12:00
Sam Hemelryk
93068559b7 Merge branch 'w15_MDL-32293_m23_timeout' of git://github.com/skodak/moodle 2012-04-10 10:43:08 +12:00
Sam Hemelryk
756d5f7610 Merge branch 'w15_MDL-32308_m23_sharing' of git://github.com/skodak/moodle 2012-04-10 10:37:45 +12:00
Petr Skoda
bcb368d988 MDL-32263 remove broken admin test in enrol_check_plugins() 2012-04-09 19:59:19 +02:00
Hugh Davenport
5b244e2bb0 MDL-32308 Fix error when testing id of guest user 2012-04-09 19:03:45 +02:00
Petr Skoda
0c5406ca93 MDL-32293 move the upgrade_set_timeout() function to lib/upgradelib.php
Credit goes to Eloy Lafuente.
2012-04-09 18:14:27 +02:00
sam marshall
ebb98bf53c MDL-32349 Installing can time out with large number of plugins 2012-04-05 18:29:00 +01:00
Eric Merrill
f930cf6b41 MDL-32143 output lib: Add ability have override core icons in dataroot
Searches dataroot/pix/ and dataroot/pix_plugins/type/plugin for icons
to override base install
2012-04-05 08:50:16 -04:00
Aparup Banerjee
5ea892f8c9 fix permissions 2012-04-05 16:36:10 +08:00
Dan Poltawski
8411c24ec1 MDL-20438 pluginlib: Don't run update checker on install
This is unlikely to be the long term solution and so MDL-32329 has been
created to address that
2012-04-04 21:02:07 +08:00
Aparup Banerjee
5661f7b454 Merge branch 'wip-MDL-31631-m23' of git://github.com/samhemelryk/moodle 2012-04-04 13:40:58 +08:00
Dan Poltawski
660c4d4643 MDL-20438 pluginlib: Fix trivial whitespace issues issues
Also fixed a comment typo I spotted whilst reviewing
2012-04-04 11:18:09 +08:00
Dan Poltawski
a973d320f1 Merge branch 'MDL-20438-update-notification' of git://github.com/mudrd8mz/moodle 2012-04-04 11:17:43 +08:00
Sam Hemelryk
b8f452165a MDL-32009 reverting changes as they break installation 2012-04-04 14:37:37 +12:00
Sam Hemelryk
e96b10b121 MDL-32009 message: Small changes before integration 2012-04-04 14:20:07 +12:00
Sam Hemelryk
f1b06f6d54 Merge branch 'MDL-32009-master-1' of git://git.luns.net.uk/moodle 2012-04-04 14:19:32 +12:00
Eloy Lafuente (stronk7)
97e84c80b0 MDL-32149 remove some now breaking expectError() uses.
I've tested that unit with debug developer, debug notices and
debug none and it passes always. So, as far as I cannot find
any reason to have those expectError() there... they are out now.
2012-04-04 03:44:10 +02:00
Eloy Lafuente (stronk7)
2000cd85da Merge branch 'w14_MDL-32149_m23_phpunit2' of git://github.com/skodak/moodle 2012-04-04 01:32:15 +02:00
Petr Skoda
d78e33488a MDL-32149 adding test changes from MDL-32081 2012-04-04 01:31:43 +02:00
Eloy Lafuente (stronk7)
959a709ebe Merge branch 'MDL-32240' of git://github.com/timhunt/moodle 2012-04-04 00:10:37 +02:00
Eloy Lafuente (stronk7)
eeb3295fd8 Merge branch 'wip-MDL-32265-m23' of git://github.com/samhemelryk/moodle 2012-04-03 23:59:07 +02:00
Eloy Lafuente (stronk7)
6643e10f39 Merge branch 'wip-MDL-29678-m23' of git://github.com/samhemelryk/moodle 2012-04-03 23:52:10 +02:00
Petr Skoda
6761e62d6d MDL-32149 link wiki docs and tracker from phpunit readme file 2012-04-03 23:08:25 +02:00
Petr Skoda
ce80640051 MDL-32149 final readme cleanup for stage 2 of PHPUnit integration 2012-04-03 22:50:45 +02:00
Petr Skoda
0348088621 MDL-32149 tests for conditional activities 2012-04-03 22:31:03 +02:00
Petr Skoda
b60d21747f MDL-32149 remove empty tests and outdated/disabled portfolio tests 2012-04-03 22:31:02 +02:00
Petr Skoda
7fe8aac1a7 MDL-32149 add quiz unit tests 2012-04-03 22:31:02 +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
b0e980d77f MDL-32149 prevent accidental overriding of testcase constructors, use setUpBeforeClass() instead 2012-04-03 22:31:01 +02:00
Petr Skoda
4c6062ea65 MDL-32149 scale generator and workshop tests 2012-04-03 22:31:00 +02:00
Petr Skoda
03c2d04d0a MDL-32149 make complete PHPUnit test time 2s faster 2012-04-03 22:31:00 +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
4ac88d6d10 MDL-32149 remaining phpunit tests for backup/restore 2012-04-03 22:30:55 +02:00
Petr Skoda
728eadac78 MDL-32149 significantly faster database reset, "util.php --drop" can now be interrupted at any time 2012-04-03 22:30:54 +02:00
Petr Skoda
dbf5a44798 MDL-32149 add backup tests and dropping of extra tables 2012-04-03 22:30:54 +02:00