CI: fix PHP and Core API tests (#52761)

* Update test environment setup to install twentytwentytwo theme

* Add changefile(s) from automation for the following project(s): woocommerce

* Add targetHints to Data API tests for allowed methods

* Fix tests

* Fix tests

* Fix tests

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chi-Hsuan Huang 2024-11-13 15:12:14 +08:00 committed by GitHub
parent fd16dc0644
commit 28ce058f9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 170 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fix PHP and Core API tests

View File

@ -3,8 +3,9 @@
echo -e 'Activate default theme \n' echo -e 'Activate default theme \n'
wp-env run tests-cli wp theme activate twentytwentythree wp-env run tests-cli wp theme activate twentytwentythree
echo -e 'Install twentytwenty and storefront themes \n' echo -e 'Install twentytwenty, twentytwentytwo and storefront themes \n'
wp-env run tests-cli wp theme install twentytwenty wp-env run tests-cli wp theme install twentytwenty
wp-env run tests-cli wp theme install twentytwentytwo
wp-env run tests-cli wp theme install storefront wp-env run tests-cli wp theme install storefront
echo -e 'Update URL structure \n' echo -e 'Update URL structure \n'