-
Bug
-
Resolution: Fixed
-
Minor
-
3.6, 3.7
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
While we cleaned a lot of the failures happening on unit tests moving from moodle tz handling to more robust php tz handling... there are still some problems that happen near TZ changes (twice a year).
This issue is about to find them and, if possible, fix them. All problems will be reported here with 1) the UTC time they happened and 2) the complete error.
A) Mon Apr 01 22:27:09 UTC 2019, Sat Apr 06 22:39:47 UTC 2019, Mon Apr 08 22:27:09 UTC 2019
mod_chat_lib_testcase::test_chat_core_calendar_provide_event_action_chattime_event_different_timezones
|
Failed asserting that core_calendar\local\event\value_objects\action Object &000000006f6b1e2f000000006102133e (
|
'name' => 'Click here to enter the chat now'
|
'url' => moodle_url Object &000000006f6b1722000000006102133e (
|
'scheme' => 'https'
|
'host' => 'www.example.com'
|
'port' => ''
|
'user' => ''
|
'pass' => ''
|
'path' => '/moodle/mod/chat/view.php'
|
'slashargument' => ''
|
'anchor' => null
|
'params' => Array &0 (
|
'id' => '222000'
|
)
|
)
|
'itemcount' => 1
|
'actionable' => true
|
) is null.
|
|
/var/www/html/mod/chat/tests/lib_test.php:414
|
/var/www/html/lib/phpunit/classes/advanced_testcase.php:80
|
|
To re-run:
|
vendor/bin/phpunit --verbose "mod_chat_lib_testcase" mod/chat/tests/lib_test.php
|