MDL-67100 core_h5p: Add autoloader to the h5p_file_storage_test
authorSara Arjona <sara@moodle.com>
Thu, 31 Oct 2019 10:07:16 +0000 (11:07 +0100)
committerSara Arjona <sara@moodle.com>
Thu, 31 Oct 2019 10:07:16 +0000 (11:07 +0100)
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');