Skip to content
This repository was archived by the owner on Nov 18, 2020. It is now read-only.
This repository was archived by the owner on Nov 18, 2020. It is now read-only.

Plugin breaks behat tests #31

@t-schroeder

Description

@t-schroeder

When running behat tests with this plugin installed and set as a default block on the user's dashboard we get various debug notices which make the tests fail.

These include:

Exception - Notice: Undefined property: stdClass::$termmode in [dirroot]/blocks/course_overview_campus/locallib.php on line 222
...

and

The function assign_print_overview() is now deprecated.
line 576 of /mod/assign/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to assign_print_overview()
...
The function chat_print_overview() is now deprecated.
line 1184 of /mod/chat/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to chat_print_overview()
...
The function choice_print_overview() is now deprecated.
line 949 of /mod/choice/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to choice_print_overview()
...
The function forum_print_overview() is now deprecated.
line 1411 of /mod/forum/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to forum_print_overview()
...
The function grouptool_print_overview() is now deprecated.
line 622 of /mod/grouptool/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to grouptool_print_overview()
...
The function lesson_print_overview() is now deprecated.
line 566 of /mod/lesson/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to lesson_print_overview()
...
The function quiz_print_overview() is now deprecated.
line 1615 of /mod/quiz/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to quiz_print_overview()
...
The function scorm_print_overview() is now deprecated.
line 1114 of /mod/scorm/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to scorm_print_overview()
...
Exception - Notice: Undefined property: stdClass::$firstrowcoursename in [dirroot]/blocks/course_overview_campus/block_course_overview_campus.php on line 1297

You already explain the print_overview calls in your README. But the other two notices look like they can be prevented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions