Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 38... Línea 38...
38
class provider_test extends \core_privacy\tests\provider_testcase {
38
class provider_test extends \core_privacy\tests\provider_testcase {
Línea 39... Línea 39...
39
 
39
 
40
    /**
40
    /**
41
     * When no preference exists, there should be no export.
41
     * When no preference exists, there should be no export.
42
     */
42
     */
43
    public function test_no_preference() {
43
    public function test_no_preference(): void {
44
        global $USER;
44
        global $USER;
45
        $this->resetAfterTest();
45
        $this->resetAfterTest();
Línea 46... Línea 46...
46
        $this->setAdminUser();
46
        $this->setAdminUser();
Línea 54... Línea 54...
54
     *
54
     *
55
     * @dataProvider data_filemanager_recentviewmode
55
     * @dataProvider data_filemanager_recentviewmode
56
     * @param string $val Value of the preference filemanager_recentviewmode
56
     * @param string $val Value of the preference filemanager_recentviewmode
57
     * @param string $desc Text describing the preference
57
     * @param string $desc Text describing the preference
58
     */
58
     */
59
    public function test_filemanager_recentviewmode(string $val, string $desc) {
59
    public function test_filemanager_recentviewmode(string $val, string $desc): void {
60
        $this->resetAfterTest();
60
        $this->resetAfterTest();
Línea 61... Línea 61...
61
 
61
 
62
        // Create test user, add some preferences.
62
        // Create test user, add some preferences.
63
        $user = $this->getDataGenerator()->create_user();
63
        $user = $this->getDataGenerator()->create_user();