Add PHPUnit test to determine that menu_block module is installable and a menu block can be created and placed.

Created on 11 July 2025, 17 days ago

Problem/Motivation

The menu_block module currently lacks automated test coverage to verify that it installs correctly and that a menu block can be created and placed. Without this, regressions or compatibility issues may go undetected during development or updates.

Steps to reproduce

Not applicable. This issue is about adding new test coverage.

Proposed resolution

Add a functional PHPUnit test that performs the following:

  • Installs the menu_block module
  • Creates a custom menu and menu block
  • Places the block in a visible region of the theme
  • Visits a page and verifies that the block is rendered

The test should extend BrowserTestBase and be placed in tests/src/Functional.

Remaining tasks

  • Create the test class
  • Enable required modules (menu_ui)
  • Create a test menu and a menu block
  • Place the block in a region
  • Visit a page and assert that the block is rendered

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024