-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.4
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-75759-master -
To reproduce:
- Initialise PHPUnit
php admin/tool/phpunit/cli/init.php
- Run the stateactions_test by itself:
vendor/bin/phpunit course/format/tests/stateactions_test.php
- Expected: It will run okay and everything is passing
- Actual: The following errors are encountered
1) core_courseformat\stateactions_test::test_get_state with data set "admin weeks course_state" ('weeks', 'admin', 'course_state', array(array(), null, null), array(array('course'), array('section0', 'section1', 'section2', 'section3'), array('cm0', 'cm1', 'cm2', 'cm3')), false)
Error: Call to undefined function core_courseformat\output\local\state\external_format_string()
/Users/jun/Work/moodles/stable_400/moodle/course/format/classes/output/local/state/cm.php:84
/Users/jun/Work/moodles/stable_400/moodle/course/format/classes/stateupdates.php:184
/Users/jun/Work/moodles/stable_400/moodle/course/format/classes/stateupdates.php:152
/Users/jun/Work/moodles/stable_400/moodle/course/format/classes/stateactions.php:446
/Users/jun/Work/moodles/stable_400/moodle/course/format/classes/stateactions.php:481
/Users/jun/Work/moodles/stable_400/moodle/course/format/tests/stateactions_test.php:233
/Users/jun/Work/moodles/stable_400/moodle/lib/phpunit/classes/advanced_testcase.php:80
Additionally, if you run with coverage, you'll see the following warnings:
144) core_courseformat\stateactions_test::test_get_state with data set "student social cm_state using an invalid cm" ('social', 'student', 'cm_state', array(array('invalidcm'), null, null), array(), true)
|
"@covers \core_course\stateactions::course_state" is invalid
|
- Discovered while testing
-
MDL-73933 Course editor: Migrate hide, show and make available course tools to the new reactive actions.
- Closed