Skip to content

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

Merged
talldan merged 1 commit intotrunkfrom
fix/templates-controller-unit-test
Nov 30, 2021
Merged

Update template controller unit test now that author support is in WP core#36987
talldan merged 1 commit intotrunkfrom
fix/templates-controller-unit-test

Conversation

@talldan
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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

@talldan
Copy link
Copy Markdown
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
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