Commit graph

99488 commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
f94195c320 MDL-67673 phpunit: Remove deprecated assertInternalType()
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.
2020-10-21 12:45:59 +02:00
Eloy Lafuente (stronk7)
80be8d2204 MDL-67673 phpunit: phpunit_constraint_object_is_equal_with_exceptions
Constraints are now declared final, so we cannot extend them anymore.

Hence, instead of extending PHPUnit\Framework\Constraint\IsEqual we
are just wrapping it into our constraint.
2020-10-21 12:45:59 +02:00
Eloy Lafuente (stronk7)
f6711bb394 MDL-67673 phpunit: Fix the return type of template methods
All the setup/teardown/pre/post/conditions template methods
now are required to return void. This was warned with phpunit 7
and now is enforced.

At the same time, fix a few wrong function names,
provider data and param types, return statements...
2020-10-21 12:45:59 +02:00
Eloy Lafuente (stronk7)
bdc3ad00c9 MDL-67673 phpunit: Bump to PHPUnit 8.5 and remove DBunit
This makes everything to break, but it's what we'll be fixing
in the next commits, heh. :-)

Generated with php72 (min version supported), following the
instructions @ https://docs.moodle.org/dev/Composer
2020-10-21 12:45:59 +02:00
Paul Holden
7337934484 MDL-69788 admin: validate language menu configuration. 2020-10-21 11:24:26 +01:00
Jun Pataleta
6ca0291f5a Merge branch 'MDL-37226-master' of git://github.com/lucaboesch/moodle 2020-10-21 17:46:55 +08:00
Tim Schroeder
8e0423d9a5
MDL-68438 message: fixed email format change with messaging disabled 2020-10-21 11:26:07 +02:00
Neill Magill
661fa18e07 MDL-69553 output: Handle pre-loading multiline string defines
Before this patch strings that were declared over multiple lines in
a template would not be parsed correctly.

{{#str}}value,
mod_forum{{/str}}

would have been been parsed to get_string('value', 'core')

{{#str}}
value, mod_forum
{{/str}}

would have been been parsed to get_string('', 'core')
2020-10-21 10:08:56 +01:00
Neill Magill
b65c22de20 MDL-69553 output: Unit tests for loading multiline string defines 2020-10-21 10:08:54 +01:00
Jun Pataleta
04d7c59e30 Merge branch 'MDL-69945-master' of git://github.com/lucaboesch/moodle 2020-10-21 16:03:20 +08:00
Adrian Greeve
56c172af7e Merge branch 'MDL-69807' of https://github.com/paulholden/moodle 2020-10-21 14:13:07 +08:00
Jun Pataleta
e58bb28610 MDL-69392 mod_forum: Colour contrast check for locked discussions 2020-10-21 14:11:39 +08:00
Jun Pataleta
191de5fe26 MDL-69392 block_myoverview: Basic contrast check for the dashboard 2020-10-21 14:11:39 +08:00
Jun Pataleta
56bfa69a72 MDL-69392 question: Fix Try again button styling 2020-10-21 14:11:39 +08:00
Jun Pataleta
3b7f63337e MDL-69392 theme_boost: Improve question colour contrast
* Lighten info container.
* Fix colour contrast for the question container by
  - Lightening the background a bit
  - Darkening the text colour a bit
  - Making sure the link colour has good colour contrast against the
  question text.
* Fix colour contrast for the comments container by
  - Lightening the text colour a bit
  - Darkening the link colour a bit for better colour contrast against
  the feedback text.
2020-10-21 14:11:13 +08:00
Jun Pataleta
73126a6767 MDL-69392 theme_classic: Darken red, blue and green colours
The current red, blue, and green colours achieve the minimum colour
contrast against a white background. However, when they're against
coloured background, text with these colours will easily fail the
4.5:1 contrast ratio requirement for Level AA.
The updated colours now have the following contrast ratio against a
white background:
* Blue  - #0f6fc5 (5.12:1, from 4.58:1)
* Green - #357a32 (5.27:1, from 4.63:1)
* Red   - #ca3120 (5.29:1, from 4.59:1)
2020-10-21 14:11:07 +08:00
Jun Pataleta
df18b4eebf MDL-69392 theme_boost: Darken red, blue and green colours
The current red, blue, and green colours achieve the minimum colour
contrast against a white background. However, when they're against
coloured background, text with these colours will easily fail the
4.5:1 contrast ratio requirement for Level AA.
The updated colours now have the following contrast ratio against a
white background:
* Blue  - #0f6fc5 (5.12:1, from 4.58:1)
* Green - #357a32 (5.27:1, from 4.63:1)
* Red   - #ca3120 (5.29:1, from 4.59:1)
2020-10-21 14:10:31 +08:00
Adrian Greeve
5dc282a0d3 Merge branch 'MDL-68766-master' of https://github.com/ised-isde-canada/moodle 2020-10-21 12:55:11 +08:00
Jake Dallimore
b64a8b3675 Merge branch 'MDL-68983-recent-session-lock-ro' of https://github.com/brendanheywood/moodle 2020-10-21 12:45:36 +08:00
Jake Dallimore
127befd73b Merge branch 'MDL-69902' of https://github.com/marinaglancy/moodle 2020-10-21 10:57:15 +08:00
Jake Dallimore
3d0f28ebb8 Merge branch 'MDL-69751-master' of git://github.com/mihailges/moodle 2020-10-21 10:05:16 +08:00
Eloy Lafuente (stronk7)
3ba1073919 weekly release 4.0dev 2020-10-21 00:50:19 +02:00
Luca Bösch
97a37413b9 MDL-65448 block_site_main_menu: Restyle moving. 2020-10-20 17:23:48 +02:00
Jake Dallimore
6325f848d8 Merge branch 'MDL-67695-master_get_lti_proxies' of https://github.com/andrewmadden/moodle 2020-10-20 11:08:16 +08:00
Adrian Greeve
33831f6e21 Merge branch 'master-MDL-68284' of https://github.com/yao9394/moodle 2020-10-20 08:48:05 +08:00
Mihail Geshoski
e412f3029e MDL-69751 core: Restore deleted guest user and add missing context
This upgrade step fixes the cases where the current guest user is
labelled as 'deleted' and the related user context is missing.
2020-10-20 08:37:44 +08:00
Mihail Geshoski
2939efff84 MDL-69751 course: Handle missing guest user context
Makes sure the guest user context exists when fetching
the recommended modules. If the context does not exist
an exception is being thrown describing the problem.
2020-10-20 08:31:43 +08:00
Víctor Déniz
b79f17e609 Merge branch 'MDL-69962-master' of https://github.com/clransom/moodle 2020-10-20 01:28:31 +01:00
Simey Lameze
1db3f6687c MDL-68664 theme: remove right margin from form-inline class 2020-10-20 08:23:24 +08:00
Andrew Nicols
178e343a0f Merge branch 'MDL-69687-master' of https://github.com/sammarshallou/moodle 2020-10-20 08:01:51 +08:00
Jake Dallimore
b0c0d612d7 Merge branch 'MDL-69726' of git://github.com/aolley/moodle 2020-10-20 07:45:35 +08:00
Paul Holden
fdd5aef039 MDL-69807 blocks: remove redundant sesskey loading edit/delete page. 2020-10-19 22:40:48 +01:00
Eloy Lafuente (stronk7)
4f3d5dfcb4 Merge branch 'MDL-69906-master-searchsimpledb' of git://github.com/mudrd8mz/moodle into master 2020-10-19 22:56:20 +02:00
Eloy Lafuente (stronk7)
6b3774b7b7 Merge branch 'MDL-57756-text-customparams' of https://github.com/cengage/moodle into master 2020-10-19 22:31:51 +02:00
Andrew Madden
8177ccf566 MDL-67695 mod_lti: Use correct return structure for get_tool_proxies.
* Deprecated serialise_tool_proxy() as no longer used.
* Use tool_proxy_return_structure for each proxy.
* Added tests for getting all proxies and orphaned proxies.
2020-10-20 04:08:35 +11:00
Sara Arjona
d09980a8b0 Merge branch 'MDL-69897' of https://github.com/paulholden/moodle into master 2020-10-19 18:14:45 +02:00
Sara Arjona
66e3cceaa2 Merge branch 'MDL-69900-master' of git://github.com/mihailges/moodle into master 2020-10-19 13:41:51 +02:00
Katie Ransom
ad7d432ebe MDL-69962 tool_usertours: Fix increase in included files 2020-10-19 10:45:26 +01:00
sam marshall
4dcca1b084 MDL-69687 Course: remove_course_contents orphaned completion data
The remove_course_contents function did not delete data from
course_module_completion table in most cases, resulting in large
quantities of orphaned data.
2020-10-19 10:26:12 +01:00
Sara Arjona
c8ad0ca25b Merge branch 'master-MDL-69791' of https://github.com/golenkovm/moodle into master 2020-10-19 10:07:11 +02:00
Andrew Nicols
0fa7d368a6 Merge branch 'MDL-65448-master' of git://github.com/lucaboesch/moodle 2020-10-19 15:49:13 +08:00
Luca Bösch
bdc639de03 MDL-65448 block_social_activities: Restyle moving. 2020-10-19 09:43:42 +02:00
Luca Bösch
60b2431798 MDL-65448 core_course: Restyle non-JS activity moving. 2020-10-19 09:33:19 +02:00
Luca Bösch
96d54e2ac9 MDL-65448 gradebook: Remove erraneous dev .movehere class left over. 2020-10-19 09:14:30 +02:00
Sara Arjona
d06da02935 Merge branch 'MDL-69736-master' of git://github.com/ferranrecio/moodle into master 2020-10-19 09:03:42 +02:00
Brendan Heywood
1b47d4bc0e MDL-69513 email: Add support for email DKIM signatures 2020-10-19 16:20:24 +11:00
Andrew Nicols
f9482497c1 Merge branch 'MDL-69687-master' of https://github.com/sammarshallou/moodle 2020-10-19 11:27:04 +08:00
Andrew Nicols
0f049286f0 Merge branch 'MDL-65448-master' of git://github.com/lucaboesch/moodle 2020-10-19 10:04:11 +08:00
sam marshall
2fe87d9566 MDL-69687 Course: Improve removal of completion data on MySQL 2020-10-16 18:20:23 +01:00
sam marshall
edb5cd0de4 MDL-69687 DB: Add API for deleting data based on subquery
The new API works on normal databases (by deleting data based on the
subquery) and also on MySQL (by deleting the data using a weird join
on the subquery).
2020-10-16 18:20:23 +01:00