Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 25... Línea 25...
25
namespace core_form\privacy;
25
namespace core_form\privacy;
Línea 26... Línea 26...
26
 
26
 
27
use core_form\privacy\provider;
27
use core_form\privacy\provider;
Línea 28... Línea -...
28
use core_privacy\local\request\writer;
-
 
29
 
-
 
30
defined('MOODLE_INTERNAL') || die();
28
use core_privacy\local\request\writer;
31
 
29
 
32
/**
30
/**
33
 * Unit tests for the privacy API implementation.
31
 * Unit tests for the privacy API implementation.
34
 *
32
 *
35
 * @copyright 2018 David Mudrák <david@moodle.com>
33
 * @copyright 2018 David Mudrák <david@moodle.com>
36
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37
 */
-
 
38
class provider_test extends \core_privacy\tests\provider_testcase {
35
 */
39
 
36
final class provider_test extends \core_privacy\tests\provider_testcase {
40
    /**
37
    /**
41
     * When no preference exists, there should be no export.
38
     * When no preference exists, there should be no export.
42
     */
39
     */
Línea 83... Línea 80...
83
    /**
80
    /**
84
     * Provides data for the {@link self::test_filemanager_recentviewmode()} method.
81
     * Provides data for the {@link self::test_filemanager_recentviewmode()} method.
85
     *
82
     *
86
     * @return array
83
     * @return array
87
     */
84
     */
88
    public function data_filemanager_recentviewmode() {
85
    public static function data_filemanager_recentviewmode(): array {
89
        return [
86
        return [
90
            'icons' => [
87
            'icons' => [
91
                'val' => '1',
88
                'val' => '1',
92
                'desc' => get_string('displayasicons', 'core_repository'),
89
                'desc' => get_string('displayasicons', 'core_repository'),
93
            ],
90
            ],