Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 33... Línea 33...
33
     *
33
     *
34
     * @throws \coding_exception
34
     * @throws \coding_exception
35
     * @throws \dml_exception
35
     * @throws \dml_exception
36
     * @throws \moodle_exception
36
     * @throws \moodle_exception
37
     */
37
     */
38
    public function test_get_title() {
38
    public function test_get_title(): void {
39
        $this->resetAfterTest();
39
        $this->resetAfterTest();
40
        $object = new accessibility();
40
        $object = new accessibility();
41
        $filter = new filter();
41
        $filter = new filter();
Línea 42... Línea 42...
42
 
42
 
Línea 55... Línea 55...
55
    /**
55
    /**
56
     * Test check_ids().
56
     * Test check_ids().
57
     *
57
     *
58
     * @throws \dml_exception
58
     * @throws \dml_exception
59
     */
59
     */
60
    public function test_check_ids() {
60
    public function test_check_ids(): void {
61
        $this->resetAfterTest();
61
        $this->resetAfterTest();
62
        $object = new accessibility();
62
        $object = new accessibility();
Línea 63... Línea 63...
63
 
63
 
64
        $output = $object->checkids();
64
        $output = $object->checkids();
Línea 72... Línea 72...
72
    /**
72
    /**
73
     * Test get_translations().
73
     * Test get_translations().
74
     *
74
     *
75
     * @throws \dml_exception
75
     * @throws \dml_exception
76
     */
76
     */
77
    public function test_get_translations() {
77
    public function test_get_translations(): void {
78
        $this->resetAfterTest();
78
        $this->resetAfterTest();
79
        $object = new accessibility();
79
        $object = new accessibility();
Línea 80... Línea 80...
80
 
80
 
81
        $output = $object->get_translations();
81
        $output = $object->get_translations();
Línea 88... Línea 88...
88
    /**
88
    /**
89
     * Test get_category_courseids().
89
     * Test get_category_courseids().
90
     *
90
     *
91
     * @throws \dml_exception
91
     * @throws \dml_exception
92
     */
92
     */
93
    public function test_get_category_courseids() {
93
    public function test_get_category_courseids(): void {
94
        $this->resetAfterTest();
94
        $this->resetAfterTest();
95
        $object = new accessibility();
95
        $object = new accessibility();
96
        $category = $this->getDataGenerator()->create_category();
96
        $category = $this->getDataGenerator()->create_category();
97
        $course = $this->getDataGenerator()->create_course((object)['category' => $category->id]);
97
        $course = $this->getDataGenerator()->create_course((object)['category' => $category->id]);