Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 36... Línea 36...
36
 * @package    core_xapi
36
 * @package    core_xapi
37
 * @since      Moodle 3.9
37
 * @since      Moodle 3.9
38
 * @copyright  2020 Ferran Recio
38
 * @copyright  2020 Ferran Recio
39
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
39
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
40
 */
40
 */
41
class item_verb_test extends advanced_testcase {
41
final class item_verb_test extends advanced_testcase {
Línea 42... Línea 42...
42
 
42
 
43
    /**
43
    /**
44
     * Test item creation.
44
     * Test item creation.
45
     */
45
     */
Línea 73... Línea 73...
73
    /**
73
    /**
74
     * Data provider for the test_create_from_id tests.
74
     * Data provider for the test_create_from_id tests.
75
     *
75
     *
76
     * @return  array
76
     * @return  array
77
     */
77
     */
78
    public function create_from_id_provider(): array {
78
    public static function create_from_id_provider(): array {
79
        return [
79
        return [
80
            'Fake IRI' => [
80
            'Fake IRI' => [
81
                'cook',
81
                'cook',
82
            ],
82
            ],
83
            'Real IRI' => [
83
            'Real IRI' => [
Línea 103... Línea 103...
103
    /**
103
    /**
104
     * Data provider for the test_invalid_data tests.
104
     * Data provider for the test_invalid_data tests.
105
     *
105
     *
106
     * @return  array
106
     * @return  array
107
     */
107
     */
108
    public function invalid_data_provider(): array {
108
    public static function invalid_data_provider(): array {
109
        return [
109
        return [
110
            'Empty or null id' => [
110
            'Empty or null id' => [
111
                '',
111
                '',
112
            ],
112
            ],
113
            'Invalid IRI value' => [
113
            'Invalid IRI value' => [