Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 21... Línea 21...
21
 *
21
 *
22
 * @package core_user
22
 * @package core_user
23
 * @copyright 2014 The Open University
23
 * @copyright 2014 The Open University
24
 * @licensehttp://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 * @licensehttp://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 */
25
 */
26
class profilelib_test extends \advanced_testcase {
26
final class profilelib_test extends \advanced_testcase {
Línea 27... Línea 27...
27
 
27
 
28
    /**
28
    /**
29
     * Load required test libraries
29
     * Load required test libraries
30
     */
30
     */
31
    public static function setUpBeforeClass(): void {
31
    public static function setUpBeforeClass(): void {
32
        global $CFG;
32
        global $CFG;
-
 
33
        require_once("{$CFG->dirroot}/user/profile/lib.php");
33
        require_once("{$CFG->dirroot}/user/profile/lib.php");
34
        parent::setUpBeforeClass();
Línea 34... Línea 35...
34
    }
35
    }
35
 
36
 
36
    /**
37
    /**
Línea 279... Línea 280...
279
    /**
280
    /**
280
     * Data provider for {@see test_profile_get_custom_field_data_by_shortname_case_sensitivity}
281
     * Data provider for {@see test_profile_get_custom_field_data_by_shortname_case_sensitivity}
281
     *
282
     *
282
     * @return array[]
283
     * @return array[]
283
     */
284
     */
284
    public function profile_get_custom_field_data_by_shortname_case_sensitivity_provider(): array {
285
    public static function profile_get_custom_field_data_by_shortname_case_sensitivity_provider(): array {
285
        return [
286
        return [
286
            'Matching case, case-sensitive search' => ['hello', 'hello', true, true],
287
            'Matching case, case-sensitive search' => ['hello', 'hello', true, true],
287
            'Matching case, case-insensitive search' => ['hello', 'hello', false, true],
288
            'Matching case, case-insensitive search' => ['hello', 'hello', false, true],
288
            'Non-matching case, case-sensitive search' => ['hello', 'Hello', true, false],
289
            'Non-matching case, case-sensitive search' => ['hello', 'Hello', true, false],
289
            'Non-matching case, case-insensitive search' => ['hello', 'Hello', false, true],
290
            'Non-matching case, case-insensitive search' => ['hello', 'Hello', false, true],