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 REST API Controller PHPUnit tests #50120

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

Mamaduka
Copy link
Member

What?

Similar to #47502.

PR updates remaining REST API controller PHPUnit tests to match the core and reduce noise when running them.

Why?

It's easy to miss an actual PHP warning in all the noise.

How?

Use @doesNotPerformAssertions instead of $this->markTestIncomplete(); when the controller doesn't implement the method.

Testing Instructions

CI should be green.

npm run test:unit:php

Screenshots or screencast

CleanShot 2023-04-27 at 11 18 40

@Mamaduka Mamaduka requested review from ntsekouras and aristath and removed request for ntsekouras April 27, 2023 07:21
@Mamaduka Mamaduka self-assigned this Apr 27, 2023
@Mamaduka Mamaduka added Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts [Type] Code Quality Issues or PRs that relate to code quality labels Apr 27, 2023
Copy link
Member

@aristath aristath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This makes perfect sense... LGTM 👍

@github-actions
Copy link

Flaky tests detected in ce3eba0.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4817112222
📝 Reported issues:

@Mamaduka Mamaduka merged commit 18e3283 into trunk Apr 27, 2023
@Mamaduka Mamaduka deleted the update/rest-controller-phpunit-tests branch April 27, 2023 08:05
@github-actions github-actions bot added this to the Gutenberg 15.8 milestone Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants