Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 32... Línea 32...
32
class privacy_legacy_quizaccess_polyfill_test extends \advanced_testcase {
32
class privacy_legacy_quizaccess_polyfill_test extends \advanced_testcase {
33
    /**
33
    /**
34
     * Test that the core_quizaccess\privacy\legacy_polyfill works and that the static _export_quizaccess_user_data can
34
     * Test that the core_quizaccess\privacy\legacy_polyfill works and that the static _export_quizaccess_user_data can
35
     * be called.
35
     * be called.
36
     */
36
     */
37
    public function test_export_quizaccess_user_data() {
37
    public function test_export_quizaccess_user_data(): void {
38
        $quiz = $this->createMock(quiz_settings::class);
38
        $quiz = $this->createMock(quiz_settings::class);
39
        $user = (object) [];
39
        $user = (object) [];
40
        $returnvalue = (object) [];
40
        $returnvalue = (object) [];
Línea 41... Línea 41...
41
 
41
 
Línea 51... Línea 51...
51
    }
51
    }
Línea 52... Línea 52...
52
 
52
 
53
    /**
53
    /**
54
     * Test the _delete_quizaccess_for_context shim.
54
     * Test the _delete_quizaccess_for_context shim.
55
     */
55
     */
56
    public function test_delete_quizaccess_for_context() {
56
    public function test_delete_quizaccess_for_context(): void {
Línea 57... Línea 57...
57
        $context = \context_system::instance();
57
        $context = \context_system::instance();
Línea 58... Línea 58...
58
 
58
 
Línea 68... Línea 68...
68
    }
68
    }
Línea 69... Línea 69...
69
 
69
 
70
    /**
70
    /**
71
     * Test the _delete_quizaccess_for_user shim.
71
     * Test the _delete_quizaccess_for_user shim.
72
     */
72
     */
73
    public function test_delete_quizaccess_for_user() {
73
    public function test_delete_quizaccess_for_user(): void {
Línea 74... Línea 74...
74
        $context = \context_system::instance();
74
        $context = \context_system::instance();
75
 
75
 
Línea 86... Línea 86...
86
    }
86
    }
Línea 87... Línea 87...
87
 
87
 
88
    /**
88
    /**
89
     * Test the _delete_quizaccess_for_users shim.
89
     * Test the _delete_quizaccess_for_users shim.
90
     */
90
     */
91
    public function test_delete_quizaccess_for_users() {
91
    public function test_delete_quizaccess_for_users(): void {
92
        $context = $this->createMock(\context_module::class);
92
        $context = $this->createMock(\context_module::class);
93
        $user = (object) [];
93
        $user = (object) [];
Línea 94... Línea 94...
94
        $approveduserlist = new \core_privacy\local\request\approved_userlist($context, 'mod_quiz', [$user]);
94
        $approveduserlist = new \core_privacy\local\request\approved_userlist($context, 'mod_quiz', [$user]);