Make WordPress Core

Changeset 65216

Timestamp:
11/03/2026 12:26:23 AM (2 days ago)
Author:
lancewillett
Message:

Tests: Cover dead_db() and admin_color_scheme_picker().

Verify that dead_db() shows the database error in the admin and during installation, and the generic message everywhere else.

Verify that admin_color_scheme_picker() selects the given user's scheme rather than the current user's, falls back to modern when the scheme is missing or unknown, lists modern, fresh and light first, and renders each scheme's inputs, label and palette.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/5792, ​https://github.com/WordPress/wordpress-develop/pull/11740

Props pbearne.
Fixes #60102, #65184.

Location:
trunk/tests/phpunit/tests
Files:
2 added

Note: See TracChangeset for help on using the changeset viewer.