- 10 Mar, 2021 1 commit
-
-
sam marshall authored
In all cases changes have been kept to a minimum while not making the code completely horrible. For example, there are many instances where it would probably be better to rewrite a query entirely, but I have not done that (in order to reduce the risk of changes).
-
- 08 Mar, 2021 1 commit
-
-
sam marshall authored
-
- 22 Feb, 2021 1 commit
-
-
Marina Glancy authored
The function must be static and actually has to do what it is supposed to. It also breaks PHP 8.0
-
- 05 Feb, 2021 1 commit
-
-
Tim Hunt authored
-
- 03 Feb, 2021 1 commit
-
-
David Castro authored
-
- 21 Jan, 2021 1 commit
-
-
Tim Hunt authored
-
- 20 Jan, 2021 2 commits
- 19 Jan, 2021 1 commit
-
-
ilya authored
-
- 06 Nov, 2020 1 commit
-
-
Marina Glancy authored
Co-authored-by:
Paul Holden <paulh@moodle.com>
-
- 21 Oct, 2020 4 commits
-
-
Eloy Lafuente authored
The optional parameters of assertEquals() and assertNotEquals() are deprecated in PHPUnit 8 (to be removed in PHPUnit 9): - delta => use assertEqualsWithDelta() - canonicalize => use assertEqualsCanonicalizing() - ignoreCase => use assertEqualsIgnoringCase - maxDepth => removed without replacement. More info @ https://github.com/sebastianbergmann/phpunit/issues/3341 Initial search done with: ag 'assert(Not)?Equals\(.*,.*,' --php Then, running tests and fixing remaining cases.
-
Eloy Lafuente authored
Both assertContains() and assertNotContains() are deprecated in PHPUnit 8 for operations on strings. Also the optional case parameter is. All uses must be changed to one of: - assertStringContainsString() - assertStringContainsStringIgnoringCase() - assertStringNotContainsString() - assertStringNotContainsStringIgnoringCase() More info: https://github.com/sebastianbergmann/phpunit/issues/3422 Regexp to find all uses: ag 'assert(Not)?Contains\('
-
Eloy Lafuente authored
While this is not strictly required, because removal will happen in PHPUnit 9.0, we are already getting rid of all uses in core. From release notes:https://phpunit.de/announcements/phpunit-8.html The annotations `@expectedException`, `@expectedExceptionCode`, `@expectedExceptionMessage`, and `@expectedExceptionMessageRegExp` are now deprecated. Using these annotations will trigger a deprecation warning in PHPUnit 8 and in PHPUnit 9 these annotations will be removed. Also, all uses of expectExceptionMessageRegExp() has been moved to expectExceptionMessageMatches(). See https://github.com/sebastianbergmann/phpunit/issues/3957 TODO: Various weirdness found while doing the changes with these tests: - vendor/bin/phpunit lib/tests/exporter_test.php (created MDL-69700) - vendor/bin/phpunit competency/tests/external_test.php (same issue than prev one) - vendor/bin/phpunit question/engine/tests/questionengine_test.php (created MDL-69624) - vendor/bin/phpunit lib/tests/event_test.php (created MDL-69688)
-
Eloy Lafuente authored
While this is not strictly required, because removal will happen in PHPUnit 9.0, we are already getting rid of all uses in core. From release notes:https://phpunit.de/announcements/phpunit-8.html assertInternalType() is deprecated and will be removed in PHPUnit 9. Refactor your test to use assertIsArray(), assertIsBool(), assertIsFloat(), assertIsInt(), assertIsNumeric(), assertIsObject(), assertIsResource(), assertIsString(), assertIsScalar(), assertIsCallable(), or assertIsIterable() instead.
-
- 29 Sep, 2020 1 commit
-
-
Brendan Heywood authored
-
- 21 Sep, 2020 1 commit
-
-
Brendan Heywood authored
-
- 20 Aug, 2020 1 commit
-
-
sam marshall authored
-
- 12 Aug, 2020 1 commit
-
-
Brendan Heywood authored
-
- 20 May, 2020 1 commit
-
-
Marina Glancy authored
-
- 07 May, 2020 1 commit
-
-
Paul Holden authored
-
- 06 Apr, 2020 1 commit
-
-
Paul Holden authored
-
- 07 Mar, 2020 1 commit
-
-
Sara Arjona authored
Component names should always support numbers (but the first character). This patch will add PARAM_COMPONENT the expected regular expression to validate the expected format.
-
- 05 Mar, 2020 1 commit
-
-
Michael Hawkins authored
-
- 03 Dec, 2019 1 commit
-
-
Shamim Rezaie authored
-
- 12 Aug, 2019 1 commit
-
-
Jake Dallimore authored
Returns a formatted string representation of the difference between two timestamps, defaulting to 'Xd Xh Xm' format, but supporting custom format strings containing any chars from: https://www.php.net/manual/en/dateinterval.format.php.
-
- 07 Aug, 2019 1 commit
-
-
Amaia authored
-
- 14 Jun, 2019 1 commit
-
-
Nicolas Roeser authored
Commit 637da99e has introduced changes for removing trailing zeroes from the output of function format_float. Due to a small omission, the function causes a PHP warning when the string decsep is set to a tilde character ('~'). This is rarely the case. The bug lies in using PHP function preg_replace with a string that contains external input (in this case, including decsep), but without escaping it for PCRE processing. This commit fixes the function to also support a tilde character in string decsep. It also adds tests for having tilde as decimal separator. Thanks-To: Jake Dallimore <jake@moodle.com>
-
- 29 Apr, 2019 1 commit
-
-
Shamim Rezaie authored
-
- 08 Apr, 2019 1 commit
-
-
Shamim Rezaie authored
-
- 29 Mar, 2019 1 commit
-
-
jun authored
-
- 06 Mar, 2019 1 commit
-
-
jun authored
-
- 18 Jan, 2019 1 commit
-
-
Amaia authored
-
- 13 Nov, 2018 1 commit
-
-
Andrew Nicols authored
This chagne adds support for a new feature known as Context Locking. This allows a context to be locked, thereby removing all write capabilities for all users (including admin) for that context, and all child contexts.
-
- 09 Oct, 2018 1 commit
-
-
Damyon Wiese authored
Improve the format of the HTML representing a forum post. 1. Use <article> tag to mark it correctly. 2. Use <time> tag to include the real datetime information. 3. Use <address> tag to specify who and when the post came from. 4. Use heading level tags to mark the subject of each post. 5. Properly nest reply posts within their parent <article> 6. Use a header tab for each article to split the metadata from the content. 7. Use CSS to separate links, not text content. Because posts are now nested properly, the heading for each one refers to it's own article and we don't need to generate arbitrary heading level tags depending on how deep the post is nested.
-
- 05 Oct, 2018 1 commit
-
-
David Mudrák authored
-
- 27 Jul, 2018 1 commit
-
-
David Mudrák authored
Places that display list of users (such as course participants page) with additional identifier fields now respect the user's permission to view other users' hidden profile fields.
-
- 03 May, 2018 2 commits
-
-
Sara Arjona authored
A new method shorten_filenames has been added to moodlelib.
-
-
- 26 Mar, 2018 1 commit
-
-
Mihail Geshoski authored
-
- 09 Mar, 2018 1 commit
-
-
Andrew Nicols authored
-