Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 56... Línea 56...
56
    /**
56
    /**
57
     * Test for provider::get_contexts_for_userid().
57
     * Test for provider::get_contexts_for_userid().
58
     *
58
     *
59
     * @throws coding_exception
59
     * @throws coding_exception
60
     */
60
     */
61
    public function test_get_contexts_for_userid() {
61
    public function test_get_contexts_for_userid(): void {
62
        // Create test user to create Calendar Events and Subscriptions.
62
        // Create test user to create Calendar Events and Subscriptions.
63
        $user = $this->getDataGenerator()->create_user();
63
        $user = $this->getDataGenerator()->create_user();
64
        $this->setUser($user);
64
        $this->setUser($user);
Línea 65... Línea 65...
65
 
65
 
Línea 128... Línea 128...
128
    /**
128
    /**
129
     * Test for provider::export_user_data().
129
     * Test for provider::export_user_data().
130
     *
130
     *
131
     * @throws coding_exception
131
     * @throws coding_exception
132
     */
132
     */
133
    public function test_export_user_data() {
133
    public function test_export_user_data(): void {
134
        global $DB;
134
        global $DB;
Línea 135... Línea 135...
135
 
135
 
136
        // Create test user to create Calendar Events and Subscriptions with.
136
        // Create test user to create Calendar Events and Subscriptions with.
137
        $user = $this->getDataGenerator()->create_user();
137
        $user = $this->getDataGenerator()->create_user();
Línea 272... Línea 272...
272
    }
272
    }
Línea 273... Línea 273...
273
 
273
 
274
    /**
274
    /**
275
     * Test for provider::test_export_user_preferences().
275
     * Test for provider::test_export_user_preferences().
276
     */
276
     */
277
    public function test_export_user_preferences() {
277
    public function test_export_user_preferences(): void {
Línea 278... Línea 278...
278
        global $DB;
278
        global $DB;
279
 
279
 
280
        // Test setup.
280
        // Test setup.
Línea 304... Línea 304...
304
    /**
304
    /**
305
     * Test for provider::delete_data_for_all_users_in_context().
305
     * Test for provider::delete_data_for_all_users_in_context().
306
     *
306
     *
307
     * @throws dml_exception
307
     * @throws dml_exception
308
     */
308
     */
309
    public function test_delete_data_for_all_users_in_context() {
309
    public function test_delete_data_for_all_users_in_context(): void {
310
        global $DB;
310
        global $DB;
Línea 311... Línea 311...
311
 
311
 
312
        // Create test user to create Calendar Events and Subscriptions with.
312
        // Create test user to create Calendar Events and Subscriptions with.
313
        $user1 = $this->getDataGenerator()->create_user();
313
        $user1 = $this->getDataGenerator()->create_user();
Línea 390... Línea 390...
390
    /**
390
    /**
391
     * Test for provider::delete_data_for_user().
391
     * Test for provider::delete_data_for_user().
392
     *
392
     *
393
     * @throws dml_exception
393
     * @throws dml_exception
394
     */
394
     */
395
    public function test_delete_data_for_user() {
395
    public function test_delete_data_for_user(): void {
396
        global $DB;
396
        global $DB;
Línea 397... Línea 397...
397
 
397
 
398
        // Create test user to create Calendar Events and Subscriptions with.
398
        // Create test user to create Calendar Events and Subscriptions with.
399
        $user1 = $this->getDataGenerator()->create_user();
399
        $user1 = $this->getDataGenerator()->create_user();
Línea 445... Línea 445...
445
    }
445
    }
Línea 446... Línea 446...
446
 
446
 
447
    /**
447
    /**
448
     * Test that only users with a user context are fetched.
448
     * Test that only users with a user context are fetched.
449
     */
449
     */
450
    public function test_get_users_in_context() {
450
    public function test_get_users_in_context(): void {
Línea 451... Línea 451...
451
        $component = 'core_calendar';
451
        $component = 'core_calendar';
452
 
452
 
453
        // Create user1 to create Calendar Events and Subscriptions.
453
        // Create user1 to create Calendar Events and Subscriptions.
Línea 567... Línea 567...
567
    }
567
    }
Línea 568... Línea 568...
568
 
568
 
569
    /**
569
    /**
570
     * Test that data for users in approved userlist is deleted.
570
     * Test that data for users in approved userlist is deleted.
571
     */
571
     */
572
    public function test_delete_data_for_users() {
572
    public function test_delete_data_for_users(): void {
Línea 573... Línea 573...
573
        $component = 'core_calendar';
573
        $component = 'core_calendar';
574
 
574
 
575
        // Create user1 to create Calendar Events and Subscriptions.
575
        // Create user1 to create Calendar Events and Subscriptions.