Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 41... Línea 41...
41
 * @copyright  2020 Victor Deniz <victor@moodle.com>
41
 * @copyright  2020 Victor Deniz <victor@moodle.com>
42
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
42
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
43
 *
43
 *
44
 * @runTestsInSeparateProcesses
44
 * @runTestsInSeparateProcesses
45
 */
45
 */
46
class editor_test extends advanced_testcase {
46
final class editor_test extends advanced_testcase {
Línea 47... Línea 47...
47
 
47
 
48
    /**
48
    /**
49
     * Form object to be used in test case.
49
     * Form object to be used in test case.
50
     */
50
     */
Línea 82... Línea 82...
82
        autoloader::register();
82
        autoloader::register();
Línea 83... Línea 83...
83
 
83
 
84
        // Add H5P content.
84
        // Add H5P content.
85
        // This is a valid .H5P file.
85
        // This is a valid .H5P file.
86
        $filename = 'find-the-words.h5p';
86
        $filename = 'find-the-words.h5p';
87
        $path = __DIR__ . '/fixtures/' . $filename;
87
        $path = self::get_fixture_path(__NAMESPACE__, $filename);
88
        $syscontext = \context_system::instance();
88
        $syscontext = \context_system::instance();
89
        $filerecord = [
89
        $filerecord = [
90
            'contextid' => $syscontext->id,
90
            'contextid' => $syscontext->id,
91
            'component' => \core_h5p\file_storage::COMPONENT,
91
            'component' => \core_h5p\file_storage::COMPONENT,