Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 34... Línea 34...
34
 *
34
 *
35
 * @copyright   2018 Andrew Nicols <andrew@nicols.co.uk>
35
 * @copyright   2018 Andrew Nicols <andrew@nicols.co.uk>
36
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37
 * @coversDefaultClass \core_privacy\local\request\transform
37
 * @coversDefaultClass \core_privacy\local\request\transform
38
 */
38
 */
39
class request_transform_test extends advanced_testcase {
39
final class request_transform_test extends advanced_testcase {
40
    /**
40
    /**
41
     * Test that user translation currently does nothing.
41
     * Test that user translation currently does nothing.
42
     *
42
     *
43
     * We have not determined if we will do this or not, but we provide the functionality and encourgae people to use
43
     * We have not determined if we will do this or not, but we provide the functionality and encourgae people to use
44
     * it so that it can be retrospectively fitted if required.
44
     * it so that it can be retrospectively fitted if required.
Línea 108... Línea 108...
108
    /**
108
    /**
109
     * Data provider for tests of the yesno transformation.
109
     * Data provider for tests of the yesno transformation.
110
     *
110
     *
111
     * @return  array
111
     * @return  array
112
     */
112
     */
113
    public function yesno_provider() {
113
    public static function yesno_provider(): array {
114
        return [
114
        return [
115
            'Bool False' => [
115
            'Bool False' => [
116
                false,
116
                false,
117
                get_string('no'),
117
                get_string('no'),
118
            ],
118
            ],