#52922 closed enhancement (fixed)
WP_Test_Stream: Add seeking capability for testing streams
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.8 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Build/Test Tools | Keywords: | has-patch has-unit-tests |
| Focuses: | Cc: |
Description
Propose adding seeking capability to the WP_Test_Stream in-memory streamWrapper.
Seeking is required for automated testing of Media streams for functions such as
getimagesize(used inwp_getimagesize)exif_read_data(used inwp_read_image_metadata)
For example, #52826 notes an issue with streams; however, integration tests are blocked due to WP_Test_Stream not supporting seeking.
Change History (7)
This ticket was mentioned in Slack in #core-media by hellofromtonya. View the logs.
5 years ago
This ticket was mentioned in PR #1131 on WordPress/wordpress-develop by hellofromtonya.
5 years ago
#3
- Keywords has-patch has-unit-tests added; needs-patch needs-unit-tests removed
#4
@
5 years ago
- Summary changed from `WP_Test_Stream` : Add seeking capability for testing streams to WP_Test_Stream: Add seeking capability for testing streams
PR 1131 is ready. @peterwilsoncc can you do a review and, if okay, get it committed please?
This ticket was mentioned in Slack in #core-media by hellofromtonya. View the logs.
5 years ago
peterwilsoncc commented on PR #1131:
5 years ago
#7
Committed in https://core.trac.wordpress.org/changeset/50771
Trac ticket: https://core.trac.wordpress.org/ticket/52922
wp_read_image_metadatato validate seeking worksWP_Test_Stream::stream_seekfor seeking functionality which is needed for:getimagesize(used inwp_getimagesize)exif_read_data(used inwp_read_image_metadata)