[wp-trac] [WordPress Trac] #34075: Consolidate methods for creating image attachments in tests
WordPress Trac
noreply at wordpress.org
Tue Sep 29 12:34:24 UTC 2015
#34075: Consolidate methods for creating image attachments in tests
------------------------------+-------------------------
Reporter: joemcgill | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.4
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------+-------------------------
In our test suite, we have three instances of a `_make_attachment()`
helper function for uploading a file and creating an attachment for tests.
They are in `tests/image/intermediate_size.php`,
`tests/post/attachment.php`, and `tests/ajax/MediaElement.php`.
We should replace these helper functions with a new factory method inside
`WP_UnitTest_Factory_For_Attachment`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34075>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list