MDL-67100 core_h5p: Add autoloader to the h5p_file_storage_test

This commit is contained in:
Sara Arjona 2019-10-31 11:07:16 +01:00
parent d7699706da
commit ca7de4b6d7

View 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');