diff --git a/public/lib/classes/task/h5p_get_content_types_task.php b/public/lib/classes/task/h5p_get_content_types_task.php index 89917de10e4..3f1ef493394 100644 --- a/public/lib/classes/task/h5p_get_content_types_task.php +++ b/public/lib/classes/task/h5p_get_content_types_task.php @@ -68,6 +68,9 @@ class h5p_get_content_types_task extends scheduled_task { } else { $numtypesinstalled = count($result->typesinstalled); mtrace("{$numtypesinstalled} new content types installed"); + foreach ($result->typesinstalled as $installed) { + mtrace(" - {$installed['name']}"); + } } } } diff --git a/public/lib/tests/task/h5p_get_content_types_task_test.php b/public/lib/tests/task/h5p_get_content_types_task_test.php index afa3858524e..728a8c56ef7 100644 --- a/public/lib/tests/task/h5p_get_content_types_task_test.php +++ b/public/lib/tests/task/h5p_get_content_types_task_test.php @@ -73,6 +73,6 @@ final class h5p_get_content_types_task_test extends \advanced_testcase { ->willReturn($core); $mocktask->execute(); - $this->expectOutputRegex('/1 new content types/'); + $this->expectOutputRegex('/1 new content types installed\s+- H5P.Accordion 1.0/'); } }