From c041644fed7c0dfd308f97190debef82c759b650 Mon Sep 17 00:00:00 2001 From: Mark Sharp Date: Thu, 14 Aug 2025 17:28:14 +0100 Subject: [PATCH] MDL-83014 core_h5p: List downloaded content types in task output --- public/lib/classes/task/h5p_get_content_types_task.php | 3 +++ public/lib/tests/task/h5p_get_content_types_task_test.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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/'); } }