Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 39... Línea 39...
39
 
39
 
40
 
40
 
41
    /**
41
    /**
42
     * Tests for \core_privacy\local\sitepolicy\manager::get_handler_classname() behaviour.
42
     * Tests for \core_privacy\local\sitepolicy\manager::get_handler_classname() behaviour.
43
     */
43
     */
44
    public function test_get_handler_classname() {
44
    public function test_get_handler_classname(): void {
Línea 45... Línea 45...
45
        global $CFG;
45
        global $CFG;
Línea 61... Línea 61...
61
    }
61
    }
Línea 62... Línea 62...
62
 
62
 
63
    /**
63
    /**
64
     * Tests for \core_privacy\local\sitepolicy\manager::is_defined()
64
     * Tests for \core_privacy\local\sitepolicy\manager::is_defined()
65
     */
65
     */
66
    public function test_is_defined() {
66
    public function test_is_defined(): void {
67
        global $CFG;
67
        global $CFG;
Línea 68... Línea 68...
68
        $this->resetAfterTest(true);
68
        $this->resetAfterTest(true);
Línea 93... Línea 93...
93
    }
93
    }
Línea 94... Línea 94...
94
 
94
 
95
    /**
95
    /**
96
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url()
96
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url()
97
     */
97
     */
98
    public function test_get_redirect_url() {
98
    public function test_get_redirect_url(): void {
99
        global $CFG;
99
        global $CFG;
Línea 100... Línea 100...
100
        $this->resetAfterTest(true);
100
        $this->resetAfterTest(true);
Línea 125... Línea 125...
125
    }
125
    }
Línea 126... Línea 126...
126
 
126
 
127
    /**
127
    /**
128
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url()
128
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url()
129
     */
129
     */
130
    public function test_get_embed_url() {
130
    public function test_get_embed_url(): void {
131
        global $CFG;
131
        global $CFG;
Línea 132... Línea 132...
132
        $this->resetAfterTest(true);
132
        $this->resetAfterTest(true);
Línea 157... Línea 157...
157
    }
157
    }
Línea 158... Línea 158...
158
 
158
 
159
    /**
159
    /**
160
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url()
160
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url()
161
     */
161
     */
162
    public function test_accept() {
162
    public function test_accept(): void {
163
        global $CFG, $USER, $DB;
163
        global $CFG, $USER, $DB;
Línea 164... Línea 164...
164
        $this->resetAfterTest(true);
164
        $this->resetAfterTest(true);
Línea 194... Línea 194...
194
    }
194
    }
Línea 195... Línea 195...
195
 
195
 
196
    /**
196
    /**
197
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url() for guests
197
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url() for guests
198
     */
198
     */
199
    public function test_accept_guests() {
199
    public function test_accept_guests(): void {
200
        global $CFG, $USER, $DB;
200
        global $CFG, $USER, $DB;
Línea 201... Línea 201...
201
        $this->resetAfterTest(true);
201
        $this->resetAfterTest(true);
Línea 243... Línea 243...
243
    }
243
    }
Línea 244... Línea 244...
244
 
244
 
245
    /**
245
    /**
246
     * Tests for \core_privacy\local\sitepolicy\manager::is_defined() with a handler
246
     * Tests for \core_privacy\local\sitepolicy\manager::is_defined() with a handler
247
     */
247
     */
248
    public function test_is_defined_with_handler() {
248
    public function test_is_defined_with_handler(): void {
249
        global $CFG;
249
        global $CFG;
250
        $this->resetAfterTest(true);
250
        $this->resetAfterTest(true);
251
        $CFG->sitepolicyhandler = 'testtool_testhandler';
251
        $CFG->sitepolicyhandler = 'testtool_testhandler';
252
        $manager = $this->get_mock_manager_with_handler();
252
        $manager = $this->get_mock_manager_with_handler();
Línea 255... Línea 255...
255
    }
255
    }
Línea 256... Línea 256...
256
 
256
 
257
    /**
257
    /**
258
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url() with a handler
258
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url() with a handler
259
     */
259
     */
260
    public function test_get_redirect_url_with_handler() {
260
    public function test_get_redirect_url_with_handler(): void {
261
        global $CFG;
261
        global $CFG;
Línea 262... Línea 262...
262
        $this->resetAfterTest(true);
262
        $this->resetAfterTest(true);
263
 
263
 
Línea 269... Línea 269...
269
    }
269
    }
Línea 270... Línea 270...
270
 
270
 
271
    /**
271
    /**
272
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url() with a handler
272
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url() with a handler
273
     */
273
     */
274
    public function test_get_embed_url_with_handler() {
274
    public function test_get_embed_url_with_handler(): void {
275
        global $CFG;
275
        global $CFG;
Línea 276... Línea 276...
276
        $this->resetAfterTest(true);
276
        $this->resetAfterTest(true);
277
 
277
 
Línea 283... Línea 283...
283
    }
283
    }
Línea 284... Línea 284...
284
 
284
 
285
    /**
285
    /**
286
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url() with a handler
286
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url() with a handler
287
     */
287
     */
288
    public function test_accept_with_handler() {
288
    public function test_accept_with_handler(): void {
289
        global $CFG, $USER, $DB;
289
        global $CFG, $USER, $DB;
Línea 290... Línea 290...
290
        $this->resetAfterTest(true);
290
        $this->resetAfterTest(true);
291
 
291
 
Línea 303... Línea 303...
303
    }
303
    }
Línea 304... Línea 304...
304
 
304
 
305
    /**
305
    /**
306
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url() for guests with a handler
306
     * Tests for \core_privacy\local\sitepolicy\manager::get_redirect_url() for guests with a handler
307
     */
307
     */
308
    public function test_accept_guests_with_handler() {
308
    public function test_accept_guests_with_handler(): void {
309
        global $CFG, $USER, $DB;
309
        global $CFG, $USER, $DB;
Línea 310... Línea 310...
310
        $this->resetAfterTest(true);
310
        $this->resetAfterTest(true);
311
 
311