-
Bug
-
Resolution: Fixed
-
Minor
-
4.4
While CL reviewing MDL-80591 I have noticed a couple of errors when running phpunit on h5p_core_test.php:
$ vendor/bin/phpunit h5p/tests/h5p_core_test.php
|
Moodle 4.4dev (Build: 20240112), 05d56ddc7564d4e91dfb8fcb324c1448eef61b95
|
Php: 8.1.27, pgsql: 14.10 (Ubuntu 14.10-0ubuntu0.22.04.1), OS: Linux 5.15.0-91-generic x86_64
|
PHPUnit 9.5.28 by Sebastian Bergmann and contributors.
|
|
EE.. 4 / 4 (100%)
|
|
Time: 00:06.469, Memory: 60.50 MB
|
|
There were 2 errors:
|
|
1) core_h5p\h5p_core_test::test_fetch_content_type
|
Undefined property: stdClass::$contentTypes
|
|
/home/simey/moodles/stable_master/moodle/h5p/tests/h5p_core_test.php:73
|
/home/simey/moodles/stable_master/moodle/lib/phpunit/classes/advanced_testcase.php:69
|
|
2) core_h5p\h5p_core_test::test_fetch_latest_content_types
|
invalid_response_exception: Invalid response value detected (No information could be obtained on the H5P content types available. H5P repository connection failure)
|
/home/simey/moodles/stable_master/moodle/h5p/tests/generator/lib.php:414
/home/simey/moodles/stable_master/moodle/h5p/tests/h5p_core_test.php:142
/home/simey/moodles/stable_master/moodle/lib/phpunit/classes/advanced_testcase.php:69
- Discovered while testing
-
MDL-80591 PHPUnit util.php fails with @runTestsInSeparateProcesses
- Closed