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
Petr Skoda
458b33866d
MDL-32149 reset all globals in PHPUnit tests, fix setting of $USER
2012-04-03 22:30:54 +02:00
Petr Skoda
a3d5830a0a
MDL-32149 PHPUnit test support - part 2
...
Includes:
* constants refactoring
* reworked db table init
* support for $CFG->debug = -1
* functional DB tests
* fixed $DB->get_indexes() to not throw exceptions when table does not exist
* fix handling of user passwords in test db
* add debug info to exception messages
* removed unnecessary PHP debug errors from mathslib
* fixed @error suppression in get_string
* fixed PHPUnit error handler setup
* added timezone info to default install
2012-04-03 22:30:53 +02:00
Eloy Lafuente (stronk7)
46ed2f8b7f
Merge branch 'w14_MDL-32251_m23_strict3' of git://github.com/skodak/moodle
2012-04-03 21:17:58 +02:00
Aparup Banerjee
c82745d016
Merge branch 'wip-MDL-30784-master' of git://github.com/phalacee/moodle
2012-04-03 17:00:47 +08:00
Aparup Banerjee
82d5042a73
Merge branch 'wip-MDL-31789-master' of git://github.com/marinaglancy/moodle
2012-04-03 16:31:53 +08:00
Aparup Banerjee
9cafd9c6e0
Merge branch 'wip-MDL-32081-m23' of git://github.com/samhemelryk/moodle
2012-04-03 16:08:18 +08:00
Petr Skoda
4218d813bf
MDL-32251 add missing spikephpcoverage modification info, improve coding style in competionlib
2012-04-03 07:59:39 +02:00
Aparup Banerjee
bc706271c8
Merge branch 'wip-MDL-32171-master' of git://github.com/marinaglancy/moodle
2012-04-03 11:42:58 +08:00
Rajesh Taneja
ab6ec58a2e
MDL-32270 Library: ->defaulthomepage is checked before used
2012-04-03 11:28:07 +08:00
Sam Hemelryk
7b98a1dfd8
Merge branch 'wip-mdl-32150' of git://github.com/rajeshtaneja/moodle
2012-04-03 10:33:06 +12:00
Dan Poltawski
8408d23c99
Merge branch 'w14_MDL-32250_m23_simpletest110' of git://github.com/skodak/moodle
2012-04-02 16:15:35 +08:00
Sam Hemelryk
f9488a6f73
MDL-30981 upgrade: Fixed a couple of phpdoc typos
2012-04-02 12:27:23 +12:00
Sam Hemelryk
ea6805f009
Merge branch 'MDL-30981' of git://github.com/stronk7/moodle
2012-04-02 12:26:41 +12:00
Eloy Lafuente (stronk7)
39b90b5152
MDL-30981 Upgrade API: Added related phpdocs
2012-04-02 00:40:13 +02:00
Sam Hemelryk
3279dd4253
Merge branch 'MDL-31711' of git://github.com/nebgor/moodle
2012-04-02 10:22:22 +12:00
Petr Skoda
d9d61fa340
MDL-32251 use standard PHP debug levels instead of original 38911
2012-03-30 19:19:06 +02:00
David Mudrak
cd89994d88
MDL-20438 getting rid of left to-do notes
2012-03-30 11:05:42 +02:00
David Mudrak
5344ddd116
MDL-20438 warn the admin that we are just showing available updates
...
This warning is displayed so that folks do not expect any sort of
auto-update ala Wordpress (yet).
2012-03-30 11:05:42 +02:00
David Mudrak
718eb2a59f
MDL-20438 small fixes spotted during various testing
2012-03-30 11:05:42 +02:00
David Mudrak
4442cc8036
MDL-20438 finishing the updatenotifybuilds feature
...
Unit tests say that all.
2012-03-30 11:05:42 +02:00
David Mudrak
21cde6ac14
MDL-20438 fixing the message_send() docblock
...
This is not directly relevant to the issue. I just spotted it while
working on the messaging API. Consider it as a well meant Trojan horse
on this branch ;-)
2012-03-30 11:05:42 +02:00
David Mudrak
a77141a7dc
MDL-20438 send notifications via messaging API
2012-03-30 11:05:42 +02:00
David Mudrak
19d11b3b34
MDL-20438 introducing the cron_notifications() method
...
This method accepts all detected changes in cron-based fetch and picks
those the site admins want to be informed about (based on the maturity
level etc).
2012-03-30 11:05:42 +02:00
David Mudrak
c6f008e747
MDL-20438 dropping get_core_update_info() method
...
There is now a single method get_update_info() used for both core and
plugins.
2012-03-30 11:05:41 +02:00
David Mudrak
7b35553b9b
MDL-20438 Introducing new compare_responses() method
2012-03-30 11:05:41 +02:00
David Mudrak
be37888050
MDL-20438 Initial support for cron based notifications
...
If enabled, Moodle sites will check for updates every night sometimes
between 01:00 AM and 06:00 AM local time. The actual offset will be
generated randomly at the beginning and used consistently since then.
This way, the queries against the server are supposed to be spread in
time.
Serious site admins should not try to upgrade their sites later than
01:00 AM as they are too tired already. Neither should they do it before
06:00 AM as they did not have a morning coffee yet and are too tired yet
:-)
2012-03-30 11:05:41 +02:00
David Mudrak
f9286139d9
MDL-20438 make sure that the curl class has been included
...
The filelib is usually loaded already. However, during some steps of the
upgrade the curl class must be available to perform fetches of updates
and the library does not need to be loaded yet.
2012-03-30 11:05:41 +02:00
David Mudrak
9bdedf322a
MDL-20438 admin/plugins.php now respects required maturity setting
2012-03-30 11:05:41 +02:00
David Mudrak
55585f3ac0
MDL-20438 initial support for checking available core update
...
In case of Moodle code itself, there is no plugin_manager like class
available so the checker class itself must be aware of versions and
actually do the checks. On the other hand, we can always rely that
version, release and maturity are always returned by the remote server.
2012-03-30 11:05:41 +02:00
David Mudrak
7d8de6d84a
MDL-20438 updated response format support
...
Multiple component updates are supported now. Code cleanup and
refactoring.
2012-03-30 11:05:40 +02:00
David Mudrak
2b47947ef5
MDL-20438 A set of unittests to illustrate the update checking integration in the plugin_manager
2012-03-30 11:05:40 +02:00
David Mudrak
dd119e21fa
MDL-20438 Let plugin_manager class use the service provided by the new available_update_checker
...
All plugininfo classes now have new property that holds their remote
status information.
2012-03-30 11:05:40 +02:00
David Mudrak
cd0bb55f84
MDL-20438 Introducing new available_update_checker class
...
The purpose of the class is to fetch the information about available
updates for the Moodle core and/or Moodle components from a remote site
and cache it locally.
2012-03-30 11:05:40 +02:00
David Mudrak
00ef3c3ed1
MDL-20438 Introducing plugininfo classes factory and plugin manager unit tests
2012-03-30 11:05:40 +02:00
David Mudrak
9c26cf7060
MDL-20438 New moodle_major_version() function
...
We will need to know our major version to fetch the relevant data from remote
servers. This patch also fixes yet another place where the version used
to be hard-coded.
2012-03-30 11:05:40 +02:00