diff --git a/h5p/tests/helper_test.php b/h5p/tests/helper_test.php
index fedede87593..73fb0e1f2bc 100644
--- a/h5p/tests/helper_test.php
+++ b/h5p/tests/helper_test.php
@@ -14,30 +14,30 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
-/**
- * Testing the H5P helper.
- *
- * @package core_h5p
- * @category test
- * @copyright 2019 Sara Arjona
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
-
declare(strict_types = 1);
namespace core_h5p;
-use advanced_testcase;
+use core_h5p\local\library\autoloader;
/**
* Test class covering the H5P helper.
*
* @package core_h5p
+ * @category test
* @copyright 2019 Sara Arjona
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ * @covers \core_h5p\helper
*/
class helper_test extends \advanced_testcase {
+ /**
+ * Register the H5P autoloader
+ */
+ protected function setUp(): void {
+ autoloader::register();
+ }
+
/**
* Test the behaviour of get_display_options().
*