David Pesce
David Pesce
Hands down, the best issue thread I've read.
@mateenQureshi - It looks like the install script went correctly. One thing to note is that the script creates a new linux user (learninglocker) and that is where you will...
Any headway on this?
Hi @kristian-94 - thanks for reporting this! I've confirmed that this is the case on Moodle 3.8.1. Will begin investigating. Since you submitted this, have you discovered anything further?
Quick update on this. If you run the test independently it passes. ``` davidpesce@mbp moodle-docker % bin/moodle-docker-compose exec webserver vendor/bin/phpunit "core_event_deprecated_testcase" lib/tests/event_deprecated_test.php Moodle 3.8.1+ (Build: 20200124), 85a035b1c5bb9e302bc779c2e6d8f449f6db5e61 Php: 7.2.27, pgsql:...
Confirmed that the deprecated message is causing this issue. Later versions of Moodle have removed the events and it's causing an exception. Related issues: #805 and #812
After a bit more digging, found an explanation here: https://github.com/xAPI-vle/moodle-logstore_xapi/commit/243694f392f3429cf92fff7a6254fed1cf4eb2d2 Copying from above: _"In unit test, if test_adminroot_cache_reset test is run before core_event_deprecated_testcase the report_eventlist_list_generator will load course_module_instances_list_viewed abstract class...
It doesn't look like there's a way to ignore events that are deprecated: https://github.com/moodle/moodle/blob/9145d80b0b89794c97cc9aeb6257a1802bd1b58d/report/eventlist/classes/list_generator.php#L42
Submitted a tracker issue to Moodle. Unfortunately, we don't have the ability to change core behavior.
I can't seem to find a relevant reason as to why the time is hard coded. If it had been set to UTC that'd make a bit more sense. Looking...