Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 26... Línea 26...
26
 * @package    tool_moodlenet
26
 * @package    tool_moodlenet
27
 * @category   test
27
 * @category   test
28
 * @copyright  2020 Jake Dallimore <jrhdallimore@gmail.com>
28
 * @copyright  2020 Jake Dallimore <jrhdallimore@gmail.com>
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 */
30
 */
31
class import_handler_info_test extends \advanced_testcase {
31
final class import_handler_info_test extends \advanced_testcase {
Línea 32... Línea 32...
32
 
32
 
33
    /**
33
    /**
34
     * Test init and the getters.
34
     * Test init and the getters.
35
     *
35
     *
Línea 57... Línea 57...
57
    /**
57
    /**
58
     * Data provider for creation of import_handler_info objects.
58
     * Data provider for creation of import_handler_info objects.
59
     *
59
     *
60
     * @return array the data for creation of the info object.
60
     * @return array the data for creation of the info object.
61
     */
61
     */
62
    public function handler_info_data_provider() {
62
    public static function handler_info_data_provider(): array {
63
        return [
63
        return [
64
            'All data present' => ['label', 'Add a label to the course', false],
64
            'All data present' => ['label', 'Add a label to the course', false],
65
            'Empty module name' => ['', 'Add a file resource to the course', true],
65
            'Empty module name' => ['', 'Add a file resource to the course', true],
66
            'Empty description' => ['resource', '', true],
66
            'Empty description' => ['resource', '', true],