moodle/mod/assign
Eloy Lafuente (stronk7) 8a14a7bd22 MDL-71036 phpunit: assertContains() now performs strict comparison
The methods assertContains() and assertNotContains() now perform
strict (type and value) comparison, pretty much like assertSame()
does.

A couple of new assertContainsEquals() and assertNotContainsEquals()
methods have been created to provide old (non-strict) behavior, pretty
much like assertEquals() do.

Apart from replacing the calls needing a relaxed comparison to those
new methods, there are also a couple of alternative, about how to
fix this, depending of every case:

- If the test is making any array_values() conversion, then it's better
  to remove that conversion and use assertArrayHasKey(), that is not
  strict.
- Sometimes if may be also possible to, simply, cast the expectation
  to the exact type coming in the array. I've not applied this technique
  to any of the cases in core.

Link: https://github.com/sebastianbergmann/phpunit/issues/3426
2021-03-11 23:04:31 +01:00
..
amd MDL-52420 mod_assign: Save comment when save buttons are clicked 2021-02-02 10:52:13 +05:30
backup/moodle2 MDL-49673 mod_assign: Tidy up hidegrader patch 2018-12-18 14:33:42 +13:00
classes MDL-45242 Lib: Replace direct references to ->showuseridentity 2021-03-08 09:20:18 +00:00
db MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
feedback MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:57:10 +00:00
lang/en MDL-70964 lang: Import fixed English strings (en_fix) 2021-02-25 16:18:57 +01:00
pix
submission MDL-71036 phpunit: assertContains() now performs strict comparison 2021-03-11 23:04:31 +01:00
templates MDL-60493 mod_assign: Unused JS variables 2020-07-28 12:01:26 +01:00
tests MDL-71036 phpunit: assertContains() now performs strict comparison 2021-03-11 23:04:31 +01:00
yui MDL-66109 js: Fix Shifter linting issues 2020-05-11 11:07:49 +08:00
adminlib.php
adminmanageplugins.php
assignmentplugin.php
batchsetallocatedmarkerform.php
batchsetmarkingworkflowstateform.php
extensionform.php MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:57:10 +00:00
externallib.php MDL-68098 ws: Fix WebServices broken by filters HTML 2020-09-22 09:43:03 +02:00
feedbackplugin.php
gradeform.php
gradingbatchoperationsform.php MDL-65956 mod_assign: Add proper capability checks and error handling 2019-11-25 10:49:21 +08:00
gradingoptionsform.php MDL-69631 assign: Add 'Draft' filter for grading table 2021-01-21 14:36:01 +11:00
gradingtable.php MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:57:10 +00:00
index.php
lib.php MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:57:10 +00:00
locallib.php MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:57:10 +00:00
mod_form.php MDL-65835 plagiarism: Initial deprecation of old functions. 2020-01-02 11:38:49 +08:00
module.js MDL-70151 assign: Fix bulk change for behat 2020-11-23 11:11:23 +08:00
override_form.php MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:57:10 +00:00
overridedelete.php MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:57:10 +00:00
overrideedit.php MDL-66148 mod_assign: update override page for relative dates mode 2019-08-14 10:40:55 +08:00
overrides.php MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:57:10 +00:00
quickgradingform.php
renderable.php MDL-66147 mod_assign: submissions overview page shows time interval 2019-08-13 15:09:11 +08:00
renderer.php MDL-61121 assign: Improve accessibility in quick grading page tables 2019-10-18 13:57:56 +08:00
settings.php Merge branch 'MDL-62223-master' of git://github.com/Kathrin84/moodle 2018-12-20 11:32:50 +08:00
styles.css MDL-37226 assign: align select all header checkbox 2020-10-16 16:09:09 +02:00
submission_form.php
submissionconfirmform.php
submissionplugin.php MDL-63349 assignfeedback_editpdf: Rotate submitted image automatically 2019-10-11 15:26:53 +11:00
upgrade.txt MDL-65809 upgrade: remove get_assignments_with_rescaled_null_grades 2019-12-20 12:20:43 +01:00
upgradelib.php MDL-65809 upgrade: remove get_assignments_with_rescaled_null_grades 2019-12-20 12:20:43 +01:00
version.php MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
view.php