Russell Smith
74ee9d29d2
MDL-55944 testing: Reduce sleep usage.
...
Remove sleep() and replace with waiting for a second to roll over,
this results in a simpler call the guarantee time() has moved forward
2016-09-14 09:49:30 +10:00
Marina Glancy
9e21f12dbd
MDL-55864 general: fix PHP7.1 strict warnings
2016-09-13 09:39:26 +08:00
Rajesh Taneja
b468dbf533
MDL-55879 behat: Only hook BeforeSuite once
...
Before suite check and initialise behat env,
this is valid for the whole run, so no need
to do the inilialsation again
2016-09-07 14:24:09 +08:00
Marina Glancy
308ce5b46f
MDL-55827 tests: @ does not suppress wrong number of arguments in php7.1
2016-09-06 15:37:30 +08:00
Cameron Ball
ab3759fff5
MDL-55404 core_upgrade: Add libcurl environment checks
...
This patch adds logic to test whether or not the
libcurl (used by PHP/cURL) was compiled against a compatible
SSL/TLS library.
2016-09-06 11:34:46 +08:00
Dan Poltawski
a46f187431
Merge branch 'wip-mdl-55766' of https://github.com/rajeshtaneja/moodle
2016-09-05 09:24:27 +01:00
Rajesh Taneja
31c8fd3e83
MDL-55766 behat: set core behat selectors if not overridden by theme
2016-08-31 07:23:13 +08:00
Eloy Lafuente (stronk7)
4bdb1298c4
Merge branch 'MDL-55237_master' of git://github.com/dmonllao/moodle
2016-08-30 12:54:46 +02:00
Marina Glancy
0df9dce716
MDL-55581 htmlpurifier: test for attributes in video tag
2016-08-30 13:44:13 +08:00
David Monllao
8bee2d8df6
MDL-55237 core_component: Fix last namespace level matching
...
Thanks to Andreas Grabs for proposing a fix.
2016-08-30 11:15:27 +08:00
David Monllao
c2df528806
Merge branch 'wip-MDL-55581-master' of git://github.com/marinaglancy/moodle
2016-08-29 16:53:46 +08:00
David Monllao
ea012c47b5
Merge branch 'MDL-55650-master' of https://github.com/sammarshallou/moodle
2016-08-29 14:42:55 +08:00
Marina Glancy
28e27ac837
MDL-55581 htmlpurifier: allow track tag in videos and audios
2016-08-29 13:25:10 +08:00
Rajesh Taneja
3037458049
MDL-55072 behat: Fixed behat_selectors to be removed from contexts
2016-08-24 13:24:34 +08:00
David Monllao
30daa61475
Merge branch 'wip-mdl-55072' of https://github.com/rajeshtaneja/moodle
2016-08-24 09:26:29 +08:00
Rajesh Taneja
b4bc4286bb
MDL-55072 behat: Allow behat_selectors to be overridden
...
if theme/tests/behat/behat_theme_{THEME_NAME}_behat_selectors.php
file exits, and has class with same file name then we will
call behat_theme_{THEME_NAME}_behat_selectors::register_moodle_selectors()
to register theme specific selectors. If they are different
then core then they will override
2016-08-24 09:13:13 +08:00
Rajesh Taneja
5aa9b5cee3
MDL-55072 behat: Added support for overriding theme tests
2016-08-24 08:57:15 +08:00
David Monllao
bae868b903
Merge branch 'MDL-55385_master' of https://github.com/marxjohnson/moodle
2016-08-24 08:24:21 +08:00
Dan Poltawski
28b606819b
Merge branch 'MDL-55628-master' of https://github.com/sammarshallou/moodle
2016-08-23 15:48:11 +01:00
Dan Poltawski
13b3bf6cd5
MDL-55423 tests: remove non-cross-db testcase
...
This isn't used in moodle core and is problematic on oracle, don't test
it.
2016-08-23 12:36:28 +01:00
Mark Johnson
e1093c7fa8
MDL-55385 output: Support non-integer output_buffering values
2016-08-23 11:19:04 +01:00
Dan Poltawski
3f92140fc8
Merge branch 'wip-mdl-46514' of https://github.com/rajeshtaneja/moodle
2016-08-23 08:59:24 +01:00
sam marshall
5c2ef08fa3
MDL-55628 Completion: Use simpledata for completion cache
...
The completion cache is currently not marked as simpledata. On the
course page it is frequently retrieved hundreds of times which results
in many calls to the slow unserialize function. By making a slight
change to the data format (using arrays instead of objects) we can
mark it as simpledata, which will avoid using unserialize.
2016-08-22 17:13:36 +01:00
sam marshall
b16b1f86b1
MDL-55650 Library: s() function - tweak parameters for performance
...
The s() function includes a comment saying that parameter options
should be modified to improve performance once PHP 5.4 is required.
Since Moodle has required PHP 5.4 for some time, we should probably
make the change and remove the comment.
According to my benchmarking, these changes make s() about 7% faster
and will save a staggering 2ms from a typical course view that calls
it 8,000 times.
2016-08-22 15:38:13 +01:00
Dan Poltawski
080f292ed7
Merge branch 'MDL-55273-cookie-secure-default' of https://github.com/brendanheywood/moodle
2016-08-22 15:25:15 +01:00
Dan Poltawski
a55ff4d9fe
Merge branch 'MDL_55423_master' of https://github.com/alexandru-elisei/moodle
2016-08-22 09:26:28 +01:00
Brendan Heywood
657ddbf592
MDL-55273 admin: Change $CFG->cookiesecure default to on
2016-08-22 09:20:32 +10:00
Rajesh Taneja
39eb8abe15
MDL-46514 behat: Delete tablesupdatedbyscenario before suite
...
Delete tablesupdatedbyscenario before db reset to ensure
db is fully reset. In case user exits or process terminated
then the file will be left and can lead to wrong results
2016-08-19 06:46:27 +08:00
Adrian Greeve
3b873397e6
MDL-22183 lib: More unit tests for next day start.
2016-08-18 10:13:31 +08:00
Adrian Greeve
4ae0691169
MDL-22183 lib: Time settings removed for stats cron.
...
Old settings that should be ignored have been removed from the
statistics cron code.
2016-08-18 10:13:31 +08:00
Alexandru Elisei
03856ac5e8
MDL-55423 accesslib: Prevent get_role_users() false debugging messages
2016-08-17 20:43:39 +03:00
Andrew Nicols
b4bb1e65dc
Merge branch 'MDL-55445-master-2nd' of git://github.com/FMCorz/moodle
2016-08-17 11:25:24 +08:00
Andrew Nicols
9d8a3055c0
Merge branch 'MDL-55272' of https://github.com/mr-russ/moodle
2016-08-16 14:55:49 +08:00
Russell Smith
6a3acc84de
MDL-55272 lib: Improve test course create performance
...
Use core functions that are faster for test file creation.
To support large requests for hashes, the core hash function
must support large hashes without recursion. PHP has a default
recursion depth of 100 and long hashes don't support this.
Remove transactions as they create performance problems for larger
courses and doesn't introduce significant benefit for developers.
Performance changes meant the times were much faster, a reasonable
guess was taken on performance of an average machine.
2016-08-16 12:00:21 +10:00
Andrew Nicols
e144182592
MDL-54647 tests: Clarify unoconv tests
2016-08-16 08:11:13 +08:00
Andrew Nicols
0a0eaa7dfc
Merge branch 'MDL-54647-master' of git://github.com/damyon/moodle
2016-08-16 08:01:47 +08:00
Damyon Wiese
36ba9c3e76
MDL-54647 tests: Reverse order of expected and actual
2016-08-15 16:34:11 +08:00
Damyon Wiese
300852ee30
MDL-54647 file_storage: Redo the test pdf every time it's viewed
2016-08-15 16:32:21 +08:00
Frederic Massart
92b9ef9917
MDL-55445 gdlib: Support for resizing an image
2016-08-15 10:54:28 +08:00
Dan Poltawski
6259952eb2
Merge branch 'MDL-54606' of https://github.com/mr-russ/moodle
2016-08-09 09:32:46 +01:00
Andrew Nicols
5fa90114d7
MDL-55329 behat: Correct typo
2016-08-09 14:41:22 +08:00
Andrew Nicols
8173c3ef7f
Merge branch 'wip-mdl-55329' of https://github.com/rajeshtaneja/moodle
2016-08-09 14:26:09 +08:00
Rajesh Taneja
e259795c4f
MDL-55329 behat: PyStrings should end with : (colon)
2016-08-09 14:22:21 +08:00
Andrew Nicols
a5aa1b6b00
Merge branch 'MDL-53016-master' of https://github.com/xow/moodle
2016-08-09 11:41:09 +08:00
Dan Poltawski
0c4ccf73d9
Merge branch 'wip-MDL-55418-master' of https://github.com/marinaglancy/moodle
2016-08-08 10:33:46 +01:00
John Okely
64f631c128
MDL-53016 classloader: Load PSR-0 and PSR-4 separately, add unit tests
2016-08-05 10:11:52 +08:00
Russell Smith
7f8a816a7d
MDL-54606 session: Add redis handler with locking.
2016-08-04 21:50:11 +10:00
Rajesh Taneja
99ad3223a5
MDL-54656 behat: Skip test if db family is not mysql or postgres
2016-08-04 08:46:04 +08:00
Dan Poltawski
de741b1551
MDL-54847 tests: fix unused var
2016-08-02 20:11:27 +01:00
Cameron Ball
c353674f21
MDL-54847 weblib: Test media attributes individually
2016-08-03 02:53:29 +08:00