Skip to content

PHP Unit Tests are failing #37116

@ockham

Description

@ockham

Description

Copied (with edits) from #37100 (comment):

[T]he remaining PHP unit test that's failing [is]

1) WP_REST_URL_Details_Controller_Test::test_will_return_from_cache_if_populated
Failed asserting that 'Example Website — - with encoded content.' contains "This value from cache".

/var/www/html/wp-content/plugins/gutenberg/phpunit/class-wp-rest-url-details-controller-test.php:302

is probably due to WordPress/wordpress-develop@1270c89 (committed today at 11:34 UTC): I noticed it wasn't present on trunk for https://github.com/WordPress/gutenberg/runs/4407241926?check_suite_focus=true (at 11:15 UTC) but for the following merge https://github.com/WordPress/gutenberg/runs/4408138725?check_suite_focus=true (at 12:51 UTC), and it touches src/wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php which seems relevant to the error 😬

Step-by-step reproduction instructions

Look at PHP unit tests for any recent commit, or run test-unit-php locally.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions