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_activity_test extends advanced_testcase {
41
final class item_activity_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 111... Línea 111...
111
    /**
111
    /**
112
     * Data provider for the test_create_from_id tests.
112
     * Data provider for the test_create_from_id tests.
113
     *
113
     *
114
     * @return  array
114
     * @return  array
115
     */
115
     */
116
    public function create_from_id_provider(): array {
116
    public static function create_from_id_provider(): array {
117
        return [
117
        return [
118
            'Fake IRI with no definition' => [
118
            'Fake IRI with no definition' => [
119
                'paella', false,
119
                'paella', false,
120
            ],
120
            ],
121
            'Fake IRI with definition' => [
121
            'Fake IRI with definition' => [
Línea 153... Línea 153...
153
    /**
153
    /**
154
     * Data provider for the test_invalid_data tests.
154
     * Data provider for the test_invalid_data tests.
155
     *
155
     *
156
     * @return  array
156
     * @return  array
157
     */
157
     */
158
    public function invalid_data_provider(): array {
158
    public static function invalid_data_provider(): array {
159
        return [
159
        return [
160
            'Invalid Avtivity objectType' => [
160
            'Invalid Avtivity objectType' => [
161
                'Invalid Type!', iri::generate('paella', 'activity'),
161
                'Invalid Type!', iri::generate('paella', 'activity'),
162
            ],
162
            ],
163
            'Invalid id value' => [
163
            'Invalid id value' => [