Skip to content

MD-2297: Fix block_panopto and block_ues_people breaking PHPUnit init - #23

Open
dvdcastro wants to merge 194 commits into
feature/fourOneMergefrom
MD-2297
Open

MD-2297: Fix block_panopto and block_ues_people breaking PHPUnit init#23
dvdcastro wants to merge 194 commits into
feature/fourOneMergefrom
MD-2297

Conversation

@dvdcastro

Copy link
Copy Markdown
Collaborator

Summary

  • block_panopto: get_content.php required externallib.php which calls require_phpunit_isolation() at include-time, crashing PHPUnit DB init. Replaced the require_once and bare use aliases with core_external\* namespace imports (Moodle 4.5 canonical approach).
  • block_ues_people: pluginname was 'LSU People', duplicating block_lsu_people and triggering plugin_defective_exception during PHPUnit init. Renamed to 'LSU People (UES)' to make it unique.

Acceptance Criteria

  • block_panopto external class uses core_external namespace imports instead of requiring externallib.php
  • block_ues_people pluginname is unique (LSU People (UES))
  • PHPUnit init completes without errors
  • Existing PHPUnit tests pass

Jira

MD-2297

Test Plan

  • Run php admin/tool/phpunit/cli/init.php — should complete without errors
  • Run PHPUnit suite for both blocks — no regressions

🤖 Generated with Claude Code

jbehrnes and others added 30 commits March 30, 2020 16:03
rrusso and others added 30 commits March 9, 2026 09:57
Co-authored-by: Cursor <cursoragent@cursor.com>
MD-1761 - Show user workday UID on profile
Initial add of checksummer
block_panopto/classes/external/get_content.php required externallib.php which
calls require_phpunit_isolation() at the top level, crashing PHPUnit DB init.
Replaced with core_external namespace imports (Moodle 4.5 canonical approach).

block_ues_people declared pluginname='LSU People' which duplicated block_lsu_people
and triggered plugin_defective_exception during init.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants