-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.7, 4.1.2
-
MOODLE_400_STABLE, MOODLE_401_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
-
MDL-77611_401 -
Steps to reproduce:
- Unzip the attached file local_fortest.zip into the local folder of your Moodle install. (It is a simple local plugin which defines a custom profile field with shortname 'catname' when it is installed.)
- php admin/tool/phpunit/cli/init.php
- vendor/bin/phpunit --testsuite tool_uploaduser_testsuite
Expected result: tests pass.
Actual result:
..F........ 11 / 11 (100%)
|
|
Time: 00:42.449, Memory: 68.00 MB
|
|
There was 1 failure:
|
|
1) tool_uploaduser\cli_test::test_upload_with_profile_fields
|
Failed asserting that two objects are equal.
|
--- Expected
|
+++ Actual
|
@@ @@
|
stdClass Object (
|
'superfield' => 'Loves cats'
|
+ 'catname' => ''
|
)
|
So, another case of MDL-62483.
- has a non-specific relationship to
-
MDL-78235 tool_uploadcsv/cli_test fails if other plugin creates checkbox profile field with default 0
- Closed
- 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