Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update template controller unit test now that author support is in WP core #36987

Merged
merged 1 commit into from
Nov 30, 2021

Conversation

talldan
Copy link
Contributor

@talldan talldan commented Nov 30, 2021

Description

As mentioned in #36896 (comment) and #36896 (comment), the templates rest controller is in an unusual situation of using some PHP code from WordPress core and some from Gutenberg. (a situation that I'm looking to fix separately in #36898).

This resulted in the author feature implemented in #36896 not fully working until the supporting code landed in WordPress core. Now that it has landed there, the unit tests need updating again in Gutenberg since the author is now correctly assigned when saving.

How has this been tested?

Unit tests should pass.

@talldan talldan added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Nov 30, 2021
@talldan talldan self-assigned this Nov 30, 2021
@Mamaduka
Copy link
Member

@talldan, I think we should also sync plugin unit tests with core one - WordPress/wordpress-develop#1967 (review).

I just wanted to mention it here, but we can handle it separately.

@talldan
Copy link
Contributor Author

talldan commented Nov 30, 2021

I think we should also sync plugin unit tests with core one

The source code also needs to be synced. The gutenberg code has fallen behind, which is concerning.

I'll try to bring everything up to date in #36898

@Mamaduka
Copy link
Member

Thank you, @talldan. Ping me when #36898 is ready for the review :)

@talldan
Copy link
Contributor Author

talldan commented Nov 30, 2021

Going to merge this, the failing e2e test is unrelated (possibly intermittent, IDK), but at least this unblocks PHP tests.

@talldan talldan merged commit 47f10dc into trunk Nov 30, 2021
@talldan talldan deleted the fix/templates-controller-unit-test branch November 30, 2021 09:24
@github-actions github-actions bot added this to the Gutenberg 12.1 milestone Nov 30, 2021
@talldan talldan mentioned this pull request Nov 30, 2021
7 tasks
@noisysocks noisysocks added the Backport to WP 6.7 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Dec 1, 2021
@noisysocks noisysocks removed the Backport to WP 6.7 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants