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
     * @dataProvider get_content_for_select_provider
33
     * @dataProvider get_content_for_select_provider
34
     * @param string $type Whether we are checking content in the course/module
34
     * @param string $type Whether we are checking content in the course/module
35
     * @param int    $expectedcount Expected number of 1st level tertiary items
35
     * @param int    $expectedcount Expected number of 1st level tertiary items
36
     * @param array  $expecteditems Expected keys of the 1st level tertiary items.
36
     * @param array  $expecteditems Expected keys of the 1st level tertiary items.
37
     */
37
     */
38
    public function test_get_content_for_select($type, $expectedcount, $expecteditems) {
38
    public function test_get_content_for_select($type, $expectedcount, $expecteditems): void {
39
        global $PAGE;
39
        global $PAGE;
40
        $this->resetAfterTest();
40
        $this->resetAfterTest();
41
        $course = $this->getDataGenerator()->create_course();
41
        $course = $this->getDataGenerator()->create_course();
42
        $module = $this->getDataGenerator()->create_module('assign', [
42
        $module = $this->getDataGenerator()->create_module('assign', [
43
            'course' => $course->id
43
            'course' => $course->id