MDL-67100 core_h5p: Add autoloader to the h5p_file_storage_test
[moodle.git] / h5p / tests / h5p_file_storage_test.php
index dc25c07..832b4f0 100644 (file)
@@ -26,6 +26,7 @@
 namespace core_h5p\local\tests;
 
 use core_h5p\file_storage;
+use core_h5p\autoloader;
 use file_archive;
 use zip_archive;
 
@@ -59,6 +60,8 @@ class h5p_file_storage_testcase extends \advanced_testcase {
         parent::setUp();
         $this->resetAfterTest(true);
 
+        autoloader::register();
+
         // Fetch generator.
         $generator = \testing_util::get_data_generator();
         $this->h5p_generator = $generator->get_plugin_generator('core_h5p');