[wp-trac] [WordPress Trac] #56203: Reduce code duplication in AJAX attachment handling tests
WordPress Trac
noreply at wordpress.org
Thu Jul 14 14:26:52 UTC 2022
#56203: Reduce code duplication in AJAX attachment handling tests
--------------------------+---------------------
Reporter: martin.krcho | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.1
Component: Media | Version: trunk
Severity: minor | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"53701" 53701]:
{{{
#!CommitTicketReference repository="" revision="53701"
Tests: Use a consistent way of setting the Administrator role in Ajax
tests.
This removes some duplicate code in favor of calling the
`WP_Ajax_UnitTestCase::_setRole()` method created specifically for this
purpose and used in other tests.
Follow-up to [500/tests], [37288].
Props martin.krcho.
See #56203.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56203#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list