moodle/admin/tool/dataprivacy/tests
Eloy Lafuente (stronk7) 85f47bae7f MDL-65204 phpunit: various fixes to assertions
Namely:
   - 3rd param of assertEquals() cannot be null.
   - Some incorrect uses of assertNotEmpty().
   - Comparing 2 strings now uses strict (===) evaluation.
       Link: https://github.com/sebastianbergmann/phpunit/issues/3185
     Solution here is one of:
       a) Return to the previous situation, making the comparison
          softer. That can achieved by forcing different types, so
          float == string works.
       b) Changing APIs (both forms and database return strings) to
          perform some conversion to floats. That would make float
          comparison (with floats or strings) to work too.
     The patch here follows the a) approach. Changing all the internals
     for proper float handling sounds excesive when it has been working
     perfectly since ever. So we went the easier route, just getting
     rid of the new === comparisons when needed by changing expectation
     types to float.
2019-04-03 10:39:19 +08:00
..
behat MDL-64323 GDPR: New request form user search not using configured fields 2019-01-16 13:34:53 +07:00
generator MDL-62554 tool_dataprivacy: Behat tests for managing registry defaults 2018-09-10 12:16:20 +08:00
api_test.php MDL-64030 tool_dataprivacy: Process requests when system purpose not set 2018-11-23 07:54:22 +08:00
coverage.php MDL-63366 tool_dataprivacy: Add coverage whitelisting 2019-03-01 10:30:31 +08:00
data_privacy_testcase.php MDL-62660 tool_dataprivacy: Add and update PHPUnit tests 2018-08-20 15:31:20 +08:00
data_registry_test.php MDL-63619 tool_dataprivacy: Fix inheritance from parent contexts 2018-10-24 08:48:18 +08:00
data_request_test.php fixup! MDL-63897 dataprivacy: Kill the preprocess stage 2018-11-09 11:26:21 +08:00
expired_contexts_test.php MDL-64424 privacy: Use system context purpose on the front page, too 2019-01-23 11:13:10 +01:00
expired_data_requests_test.php Merge branch 'MDL-63867-master' of git://github.com/mickhawkins/moodle 2018-11-09 15:31:28 +08:00
external_test.php MDL-64323 GDPR: New request form user search not using configured fields 2019-01-16 13:34:53 +07:00
filtered_userlist_test.php MDL-62560 tool_dataprivacy: Add unit test for filtered userlist 2018-10-22 12:50:15 +02:00
manager_observer_test.php MDL-62660 tool_dataprivacy: Add and update PHPUnit tests 2018-08-20 15:31:20 +08:00
metadata_registry_test.php MDL-65204 phpunit: various fixes to assertions 2019-04-03 10:39:19 +08:00
task_test.php MDL-63897 dataprivacy: Kill the preprocess stage 2018-11-09 11:08:07 +08:00
user_deleted_observer_test.php MDL-63919 tool_dataprivacy: admin & notify fixes 2018-11-10 02:22:12 +01:00