Skip to content

Tests_Ajax_MediaEdit::testImageEditOverwriteConstant(): prevent test being marked as risky #3182

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

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 5, 2022

If the $files_that_shouldnt_exist file list would be empty, this test would be marked as risky as it wouldn't perform any assertions.

This small tweak prevents this from happening.

Trac ticket: https://core.trac.wordpress.org/ticket/55652


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

…being marked as risky

If the `$files_that_shouldnt_exist` file list would be empty, this test would be marked as risky as it wouldn't perform any assertions.

This small tweak prevents this from happening.
@jrfnl jrfnl requested a review from SergeyBiryukov September 5, 2022 10:52
@SergeyBiryukov
Copy link
Member

Thanks for the PR! Merged in r54073.

@jrfnl jrfnl deleted the trac-55652/test-prevent-test-being-marked-risky-1 branch September 5, 2022 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants