Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.2
-
MOODLE_32_STABLE
-
MOODLE_32_STABLE
-
MDL-56228-master -
Description
Testing a library upgrade, I came across this failure (using the moodle oracle docker instance):
There was 1 failure:
|
|
1) mod_data_generator_testcase::test_create_entry
|
Failed asserting that two strings are equal.
|
--- Expected
|
+++ Actual
|
@@ @@
|
-'menu1'
|
+'opt1##opt2##opt3##opt4'
|
|
/home/jake/moodledata/omaster/moodle/mod/data/tests/generator_test.php:221
|
/home/jake/moodledata/omaster/moodle/lib/phpunit/classes/advanced_testcase.php:80
|
|
To re-run:
|
vendor/bin/phpunit mod_data_generator_testcase mod/data/tests/generator_test.php
|
|
FAILURES!
|
Tests: 3, Assertions: 70, Failures: 1.
|
The first run passed, but subsequent runs hit this error every time. The problem is that the default sort by (which should be ASC), isn't functioning properly.