Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.0.7, 4.1.2
Description
The following PHPUnit tests in core_reportbuilder\local\helpers\user_profile_fields_test.php fail when other user profile fields exist
core_reportbuilder\local\helpers\user_profile_fields_test::test_get_columns
Failed asserting that actual size 7 matches expected size 6.
/var/www/html/reportbuilder/tests/local/helpers/user_profile_fields_test.php:87/var/www/html/lib/phpunit/classes/advanced_testcase.php:80
core_reportbuilder\local\helpers\user_profile_fields_test::test_get_filters
Failed asserting that actual size 7 matches expected size 6.
/var/www/html/reportbuilder/tests/local/helpers/user_profile_fields_test.php:157
/var/www/html/lib/phpunit/classes/advanced_testcase.php:80
Attachments
Issue Links
- has been marked as being related by
-
MDL-62483 Should be harder to write fragile unit tests that make unwarranted assumptions about a new Moodle install
-
- Open
-