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_object_test extends advanced_testcase {
41
final class item_object_test extends advanced_testcase {
Línea 42... Línea 42...
42
 
42
 
43
    /**
43
    /**
44
     * Test item creation with agent.
44
     * Test item creation with agent.
45
     */
45
     */
Línea 115... Línea 115...
115
    /**
115
    /**
116
     * Data provider for the test_invalid_data tests.
116
     * Data provider for the test_invalid_data tests.
117
     *
117
     *
118
     * @return  array
118
     * @return  array
119
     */
119
     */
120
    public function invalid_data_provider(): array {
120
    public static function invalid_data_provider(): array {
121
        return [
121
        return [
122
            'Empty or null id' => [
122
            'Empty or null id' => [
123
                '',
123
                '',
124
            ],
124
            ],
125
            'Invalid IRI value' => [
125
            'Invalid IRI value' => [