[wp-trac] [WordPress Trac] #42736: Adjust two media test methods

WordPress Trac noreply at wordpress.org
Tue Nov 28 17:55:22 UTC 2017


#42736: Adjust two media test methods
------------------------------+------------------------------
 Reporter:  birgire           |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  4.9
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+------------------------------
Changes (by birgire):

 * keywords:   => has-patch


Comment:

 [attachment:42736.diff] contains suggested updates to:

 -
 {{{Tests_Media::test_media_handle_upload_uses_post_parent_for_directory_date()}}}:
 adds a missing slash and supports {{{WP_TESTS_DOMAIN}}} rather than the
 fixed {{{example.org}}} test domain.
 -
 {{{Tests_Media::test_media_handle_upload_ignores_page_parent_for_directory_date()}}}:
 adds a missing slash and asserts that the file is from the current month's
 upload directory, not a different one.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42736#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list