Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 23... Línea 23...
23
 * @category   test
23
 * @category   test
24
 * @copyright  2020 Amaia Anabitarte <amaia@moodle.com>
24
 * @copyright  2020 Amaia Anabitarte <amaia@moodle.com>
25
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 * @coversDefaultClass \contenttype_h5p\content
26
 * @coversDefaultClass \contenttype_h5p\content
27
 */
27
 */
28
class content_h5p_test extends \advanced_testcase {
28
final class content_h5p_test extends \advanced_testcase {
Línea 29... Línea 29...
29
 
29
 
30
    /**
30
    /**
31
     * Tests for uploaded file.
31
     * Tests for uploaded file.
32
     *
32
     *
Línea 136... Línea 136...
136
    /**
136
    /**
137
     * Data provider for test_is_view_allowed.
137
     * Data provider for test_is_view_allowed.
138
     *
138
     *
139
     * @return array
139
     * @return array
140
     */
140
     */
141
    public function is_view_allowed_provider(): array {
141
    public static function is_view_allowed_provider(): array {
142
        return [
142
        return [
143
            'Editing teacher with all libraries enabled' => [
143
            'Editing teacher with all libraries enabled' => [
144
                'role' => 'editingteacher',
144
                'role' => 'editingteacher',
145
                'disabledlibraries' => [],
145
                'disabledlibraries' => [],
146
                'expected' => [true, true, true, false],
146
                'expected' => [true, true, true, false],