Marina Glancy
e2536570a3
Merge branch 'w43_MDL-37813_m24_filterall' of https://github.com/skodak/moodle into MOODLE_24_STABLE
2013-10-23 10:18:47 +11:00
Dan Poltawski
af90211efd
Merge branch 'MDL-42112-24' of git://github.com/damyon/moodle into MOODLE_24_STABLE
2013-10-22 16:45:17 +08:00
Petr Škoda
675fa4b813
MDL-37813 remove missing filters when configuring string filters and fix filter uninstall
2013-10-18 15:59:22 +02:00
Damyon Wiese
90b46f39a4
Merge branch 'MDL-41554-24' of git://github.com/danpoltawski/moodle into MOODLE_24_STABLE
2013-10-18 13:27:19 +08:00
Dan Poltawski
1f3a85aa54
MDL-41554 rss: Move to more robust test url
...
tinyurl was sometimes failing (was bad to use them anyway)
2013-10-18 12:47:44 +08:00
Damyon Wiese
48763c4d21
MDL-42112 tablelib: Generate the correct number of cols for empty rows
...
(And a test for it).
2013-10-18 11:56:06 +08:00
Damyon Wiese
d91225aae4
MDL-42112 Tablelib: Add unit tests (some)
2013-10-18 11:56:03 +08:00
Dan Poltawski
34b3d144fe
Merge branch 'MDL-41672-text-mail-links_24' of git://github.com/mudrd8mz/moodle into MOODLE_24_STABLE
2013-10-14 12:12:17 +08:00
David Mudrák
3bd02768df
MDL-41672 Add html2text unit test for multiple occurrences of the same URL
2013-10-09 15:49:12 +02:00
Petr Škoda
a42e313460
MDL-42054 fix incorrect email redirection in unit tests
2013-10-09 11:57:04 +02:00
Petr Škoda
c01c608fdc
MDL-41197 normalize ascii text conversion
2013-10-08 00:04:46 +02:00
Sam Hemelryk
2ff9ac5608
MDL-41197 fix unit tests
2013-10-07 14:16:25 +13:00
Petr Škoda
54b951fb5f
MDL-41197 ignore all problems when converting texts
2013-10-04 11:13:00 +02:00
Sam Hemelryk
e5b13b7fc0
MDL-41900 events: avoid new debug call within unit tests
2013-10-01 16:21:19 +13:00
Dan Poltawski
d65c2e5d44
Merge branch 'wip-MDL-41179-m24' of git://github.com/marinaglancy/moodle into MOODLE_24_STABLE
2013-09-03 11:49:07 +08:00
Dan Poltawski
8793ba310d
MDL-40676 tests: fix null byte test.
2013-09-02 13:59:26 +08:00
Petr Škoda
74d458916b
MDL-40676 ignore null bytes
2013-09-02 12:28:15 +08:00
Marina Glancy
f8758dc3d3
MDL-41179 is_user_access_restricted_by_capability() must look at specified user and not current
2013-08-27 09:50:46 +10:00
Frederic Massart
d0720e784e
MDL-40877 core_text: Added UTF-8 safe strrchr method
2013-08-16 14:20:31 +08:00
Petr Škoda
f25af6571f
MDL-40611 fix context cache size expectation
2013-07-13 15:40:26 +02:00
David Mudrák
bdd014e2c2
MDL-35206 Fix the links list enumeration in the html2text library
2013-06-28 13:14:48 +02:00
Marina Glancy
bebd6a6cef
Merge branch 'MDL-40207-24' of git://github.com/danpoltawski/moodle into MOODLE_24_STABLE
2013-06-18 15:39:55 +10:00
Marina Glancy
272105604a
Merge branch 'MDL-39650-24' of git://github.com/FMCorz/moodle into MOODLE_24_STABLE
2013-06-18 14:13:10 +10:00
Dan Poltawski
f7c0e172c6
MDL-40207 simplepie: reduce false failures in unit tests
...
The simplepie tests time out too quickly due to a low connect timeout,
to fix this, I converted the unit tests to use a high timeout value.
2013-06-17 10:59:41 +08:00
Sam Hemelryk
b26a15ff67
Merge branch 'MDL-39454-m24' of git://github.com/sammarshallou/moodle into MOODLE_24_STABLE
2013-06-11 12:26:42 +12:00
Dan Poltawski
d000c1a380
Merge branch 'MDL-39536-24' of git://github.com/FMCorz/moodle into MOODLE_24_STABLE
2013-06-04 13:20:56 +08:00
Frederic Massart
e4ddfbe0f8
MDL-39536 completion: Unit tests for get_activities and has_activities
2013-06-04 12:57:53 +08:00
Marina Glancy
fc97a877fd
MDL-39801 navigation_node::remove does not allow to insert nodes afterwards
2013-06-04 02:03:31 +02:00
Marina Glancy
d60d1d0db8
MDL-39801 navigation_node::remove fails if first child does not have a key
2013-06-04 02:03:24 +02:00
Eloy Lafuente (stronk7)
d4ef1bbbcf
MDL-39465 Show env. info instead of part twice.
2013-06-04 00:51:04 +02:00
Petr Škoda
29b18e6c68
MDL-39465 detect environment problems in tests
...
This should help explain why something else fails.
2013-05-31 22:04:02 +02:00
Frederic Massart
734581a35e
MDL-39650 form: Type can be set on repeated elements in a group
2013-05-31 11:05:08 +08:00
Eloy Lafuente (stronk7)
847f1dd489
Merge branch 'w22_MDL-39676_m24_whereparam' of git://github.com/skodak/moodle into MOODLE_24_STABLE
2013-05-28 15:34:13 +02:00
Petr Škoda
829b842997
MDL-39676 improve get_role_users() unit tests
2013-05-25 10:13:26 +02:00
Gilles-Philippe Leblanc
e60224a32a
MDL-38239 gradebook: Importing grades from a .txt file with commas for decimals causes an error
2013-05-21 14:13:16 -04:00
Frederic Massart
d39925c792
MDL-38885 form: Fix comments and stricter unit test
2013-05-10 08:36:19 +08:00
Frederic Massart
9d02febe9b
MDL-38885 form: Unit tests for data cleaning
2013-05-09 14:08:08 +08:00
Damyon Wiese
93c5c3b02c
MDL-38289: Custom profile fields - added unit test
...
Added a unit test to cover the case when you are fetching a custom
profile field but you are not logged in.
2013-05-09 10:29:21 +08:00
Tim Hunt
2ec2d00dc8
MDL-39445 get_plugin_list clean_param use is slow
...
get_plugin_list was calling clean_param($pluginname, PARAM_PLUGIN) a
lot (600+ times per page), and that is much slower than you would guess.
A specific function for this case, (which we then also use from
clean_param) is a performance win.
2013-05-02 15:47:28 +01:00
sam marshall
02d61e0481
MDL-39454 Accesslib: is_siteadmin is a bit slow
2013-05-02 10:47:21 +01:00
Tim Hunt
70351389f7
MDL-39378 Improve s() performance.
...
These changes give about a 10% speed-up in this function. The significant changes are:
1. Simplify the if logic to remove unnecssary cases.
2. Dont pass default argument values to htmlspecialchars, just using the
defaults is faster.
3. I can confirm that /i regex is faster than the equivalent regex without the i.
I also added more unit tests to test the edge cases.
2013-04-29 12:32:24 +01:00
Tim Hunt
7017ce1a30
MDL-39378 s(): fix bad hex regex
2013-04-29 12:32:20 +01:00
Tim Hunt
79ed1fe6c6
MDL-35364 shorten text: don't return invalid HTML.
...
I also broke the unit tests into more, smaller, named tests, so that
when things start failing, more tests are run, and it is clearer what
the problem is.
In a couple of cases, I adjusted the $ideal lenght in the test. A
careful counting of the characters in the test input (added as comments)
suggests that the new values make for better tests.
2013-04-22 19:24:50 +01:00
Dan Poltawski
a1ec118378
Merge branch 'MDL-38999_24' of git://github.com/stronk7/moodle into MOODLE_24_STABLE
2013-04-10 10:35:52 +08:00
Eloy Lafuente (stronk7)
eecfff557d
MDL-38999 timezones: add some TZ/stamps know to be problematic to tests.
2013-04-08 16:32:28 +02:00
David Mudrák
5c0877079c
MDL-39023 Make get_language_dependencies() aware of circular dependency risk
...
The patch reimplements the core_string_manager::get_language_dependencies()
so that potentially mis-configured language packs with circular
dependencies or self dependency do not make the site unavailable.
Unit tests for the expected behaviour are added.
2013-04-08 14:26:23 +02:00
Damyon Wiese
70a9bf863b
MDL-38840 Statslib - Fix failing unit tests on ci server (DST change)
2013-04-02 16:49:21 +02:00
Eloy Lafuente (stronk7)
26431c6f94
Merge branch 'MDL-38170-m24' of git://github.com/sammarshallou/moodle into MOODLE_24_STABLE
2013-03-04 16:26:07 +01:00
Mark Nielsen
53c66110a8
MDL-36901: Remove system paths from exceptions
...
Replaces any server paths, like dataroot, with a token
in exception messages and debug info.
2013-03-04 00:16:58 +01:00
sam marshall
850d33e658
MDL-38170 SimplePie: Cannot read https feeds through proxy
2013-03-01 10:33:24 +00:00