#50671 closed defect (bug) (fixed)
REST API plugins endpoint create item tests don't work in all environments
| Reported by: | TimothyBlynJacobs | Owned by: | TimothyBlynJacobs |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | REST API | Version: | 5.5 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | rest-api |
Description
A couple of hosts that are running the WordPress test suite reporter are encountering issues with the create_item tests for the new plugins endpoint introduced in [48242]. See wordpress/phpunit-test-reporter#83 for details.
WP_REST_Plugins_Controller_Test::test_create_item unlink(/var/www/vhosts/wp-test-runner/tests/phpunit/includes/../data/link-manager.zip): No such file or directory WP_REST_Plugins_Controller_Test::test_create_item_and_activate unlink(/var/www/vhosts/wp-test-runner/tests/phpunit/includes/../data/link-manager.zip): No such file or directory WP_REST_Plugins_Controller_Test::test_create_item_and_activate_errors_if_no_permission_to_activate_plugin
I believe this is due to the language pack upgrader running after the plugin has been installed. We should make the package override more specific and possibly unhook the language upgrader async check entirely.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 48524: