Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 41... Línea 41...
41
 
41
 
42
    /**
42
    /**
43
     * Test the returned data of generate_h5p_data() when the method is called without requesting
43
     * Test the returned data of generate_h5p_data() when the method is called without requesting
44
     * creation of library files.
44
     * creation of library files.
45
     */
45
     */
46
    public function test_generate_h5p_data_no_files_created_return_data() {
46
    public function test_generate_h5p_data_no_files_created_return_data(): void {
Línea 47... Línea 47...
47
        global $DB;
47
        global $DB;
Línea 48... Línea 48...
48
 
48
 
Línea 97... Línea 97...
97
 
97
 
98
    /**
98
    /**
99
     * Test the returned data of generate_h5p_data() when the method requests
99
     * Test the returned data of generate_h5p_data() when the method requests
100
     * creation of library files.
100
     * creation of library files.
101
     */
101
     */
102
    public function test_generate_h5p_data_files_created_return_data() {
102
    public function test_generate_h5p_data_files_created_return_data(): void {
Línea 103... Línea 103...
103
        global $DB;
103
        global $DB;
Línea 104... Línea 104...
104
 
104
 
Línea 157... Línea 157...
157
     *
157
     *
158
     * @dataProvider generate_h5p_data_files_creation_provider
158
     * @dataProvider generate_h5p_data_files_creation_provider
159
     * @param bool $createlibraryfiles Whether to create library files on the filesystem
159
     * @param bool $createlibraryfiles Whether to create library files on the filesystem
160
     * @param bool $expected The expectation whether the files have been created or not
160
     * @param bool $expected The expectation whether the files have been created or not
161
     **/
161
     **/
162
    public function test_generate_h5p_data_files_creation(bool $createlibraryfiles, bool $expected) {
162
    public function test_generate_h5p_data_files_creation(bool $createlibraryfiles, bool $expected): void {
163
        global $DB;
163
        global $DB;
Línea 164... Línea 164...
164
 
164
 
Línea 165... Línea 165...
165
        $this->resetAfterTest();
165
        $this->resetAfterTest();
Línea 213... Línea 213...
213
     * creation of H5P file and xAPI states.
213
     * creation of H5P file and xAPI states.
214
     *
214
     *
215
     * @dataProvider generate_h5p_data_xapistates_provider
215
     * @dataProvider generate_h5p_data_xapistates_provider
216
     * @param array|null $filerecord
216
     * @param array|null $filerecord
217
     */
217
     */
218
    public function test_generate_h5p_data_xapistates(?array $filerecord) {
218
    public function test_generate_h5p_data_xapistates(?array $filerecord): void {
219
        global $DB;
219
        global $DB;
Línea 220... Línea 220...
220
 
220
 
Línea 221... Línea 221...
221
        $this->resetAfterTest();
221
        $this->resetAfterTest();
Línea 324... Línea 324...
324
 
324
 
325
    /**
325
    /**
326
     * Test the behaviour of create_library_record(). Test whether the library data is properly
326
     * Test the behaviour of create_library_record(). Test whether the library data is properly
327
     * saved in the database.
327
     * saved in the database.
328
     */
328
     */
329
    public function test_create_library_record() {
329
    public function test_create_library_record(): void {
Línea 330... Línea 330...
330
        $this->resetAfterTest();
330
        $this->resetAfterTest();
Línea 331... Línea 331...
331
 
331
 
Línea 367... Línea 367...
367
     *
367
     *
368
     * @dataProvider create_h5p_record_provider
368
     * @dataProvider create_h5p_record_provider
369
     * @param array $h5pdata The h5p content data
369
     * @param array $h5pdata The h5p content data
370
     * @param \stdClass $expected The expected saved data
370
     * @param \stdClass $expected The expected saved data
371
     **/
371
     **/
372
    public function test_create_h5p_record(array $h5pdata, \stdClass $expected) {
372
    public function test_create_h5p_record(array $h5pdata, \stdClass $expected): void {
373
        global $DB;
373
        global $DB;
Línea 374... Línea 374...
374
 
374
 
Línea 375... Línea 375...
375
        $this->resetAfterTest();
375
        $this->resetAfterTest();
Línea 490... Línea 490...
490
     *
490
     *
491
     * @dataProvider create_contents_libraries_record_provider
491
     * @dataProvider create_contents_libraries_record_provider
492
     * @param array $contentslibrariestdata The h5p contents libraries data.
492
     * @param array $contentslibrariestdata The h5p contents libraries data.
493
     * @param \stdClass $expected The expected saved data.
493
     * @param \stdClass $expected The expected saved data.
494
     **/
494
     **/
495
    public function test_create_contents_libraries_record(array $contentslibrariestdata, \stdClass $expected) {
495
    public function test_create_contents_libraries_record(array $contentslibrariestdata, \stdClass $expected): void {
496
        global $DB;
496
        global $DB;
Línea 497... Línea 497...
497
 
497
 
Línea 498... Línea 498...
498
        $this->resetAfterTest();
498
        $this->resetAfterTest();
Línea 550... Línea 550...
550
     *
550
     *
551
     * @dataProvider create_library_dependency_record_provider
551
     * @dataProvider create_library_dependency_record_provider
552
     * @param array $librarydependencydata The library dependency data.
552
     * @param array $librarydependencydata The library dependency data.
553
     * @param \stdClass $expected The expected saved data.
553
     * @param \stdClass $expected The expected saved data.
554
     **/
554
     **/
555
    public function test_create_library_dependency_record(array $librarydependencydata, \stdClass $expected) {
555
    public function test_create_library_dependency_record(array $librarydependencydata, \stdClass $expected): void {
556
        global $DB;
556
        global $DB;
Línea 557... Línea 557...
557
 
557
 
Línea 558... Línea 558...
558
        $this->resetAfterTest();
558
        $this->resetAfterTest();