Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 37... Línea 37...
37
 * @copyright  2020 Amaia Anabitarte <amaia@moodle.com>
37
 * @copyright  2020 Amaia Anabitarte <amaia@moodle.com>
38
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
39
 * @coversDefaultClass \core_contentbank\content
39
 * @coversDefaultClass \core_contentbank\content
40
 *
40
 *
41
 */
41
 */
42
class content_test extends \advanced_testcase {
42
final class content_test extends \advanced_testcase {
Línea 43... Línea 43...
43
 
43
 
44
    /**
44
    /**
45
     * Setup to ensure that fixtures are loaded.
45
     * Setup to ensure that fixtures are loaded.
46
     */
46
     */
Línea 72... Línea 72...
72
    /**
72
    /**
73
     * Data provider for test_set_name.
73
     * Data provider for test_set_name.
74
     *
74
     *
75
     * @return  array
75
     * @return  array
76
     */
76
     */
77
    public function set_name_provider() {
77
    public static function set_name_provider(): array {
78
        return [
78
        return [
79
            'Standard name' => ['New name', 'New name'],
79
            'Standard name' => ['New name', 'New name'],
80
            'Name with digits' => ['Today is 17/04/2017', 'Today is 17/04/2017'],
80
            'Name with digits' => ['Today is 17/04/2017', 'Today is 17/04/2017'],
81
            'Name with symbols' => ['Follow us: @moodle', 'Follow us: @moodle'],
81
            'Name with symbols' => ['Follow us: @moodle', 'Follow us: @moodle'],
82
            'Name with tags' => ['This is <b>bold</b>', 'This is bold'],
82
            'Name with tags' => ['This is <b>bold</b>', 'This is bold'],