Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 44... Línea 44...
44
    }
44
    }
Línea 45... Línea 45...
45
 
45
 
46
    /**
46
    /**
47
     * Ensure that export_user_preferences returns no data if the user has no data.
47
     * Ensure that export_user_preferences returns no data if the user has no data.
48
     */
48
     */
49
    public function test_export_user_preferences_not_defined() {
49
    public function test_export_user_preferences_not_defined(): void {
50
        $user = \core_user::get_user_by_username('admin');
50
        $user = \core_user::get_user_by_username('admin');
Línea 51... Línea 51...
51
        provider::export_user_preferences($user->id);
51
        provider::export_user_preferences($user->id);
52
 
52
 
Línea 56... Línea 56...
56
 
56
 
57
    /**
57
    /**
58
     * Ensure that export_user_preferences returns single preferences.
58
     * Ensure that export_user_preferences returns single preferences.
59
     * These preferences can be set on each course, but the value is shared in the whole site.
59
     * These preferences can be set on each course, but the value is shared in the whole site.
60
     */
60
     */
61
    public function test_export_user_preferences_single() {
61
    public function test_export_user_preferences_single(): void {
62
        // Define a user preference.
62
        // Define a user preference.
63
        $user = $this->getDataGenerator()->create_user();
63
        $user = $this->getDataGenerator()->create_user();
64
        $this->setUser($user);
64
        $this->setUser($user);