[wp-trac] [WordPress Trac] #56681: Failing unit tests on PHP 8.1 and 8.2
WordPress Trac
noreply at wordpress.org
Wed Oct 5 14:47:21 UTC 2022
#56681: Failing unit tests on PHP 8.1 and 8.2
-------------------------------------------------+-------------------------
Reporter: desrosj | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: needs-testing has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"54396" 54396]:
{{{
#!CommitTicketReference repository="" revision="54396"
Tests: Add comments to clarify a REST API test for password protected
posts.
Authenticated users should only be allowed to read password protected
content if they have the `edit_post` meta capability for the post. In
other words, the content of a password protected post created by an Editor
should not be viewable by a Contributor.
This commit aims to clarify the usage of a negative assertion
`assertStringNotContainsString()` and describe the intention behind the
test to avoid confusion.
Follow-up to [50717].
Fixes #56681.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56681#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list