Make WordPress Core


Ignore:
Timestamp:
10/08/2016 12:04:39 PM (8 years ago)
Author:
johnbillion
Message:

Media: Correct the hostname used in the wp_get_attachment_metadata() test.

See #36246

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/media.php

    r38614 r38760  
    18081808        $month = date( 'm' );
    18091809
    1810         $expected = '<img width="999" height="999" src="http://example.org/wp-content/uploads/' . $year . '/' . $month . '/test-image-testsize-999x999.png"' .
     1810        $expected = '<img width="999" height="999" src="http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year . '/' . $month . '/test-image-testsize-999x999.png"' .
    18111811            ' class="attachment-testsize size-testsize" alt="test-image-large.png"' .
    1812             ' srcset="http://example.org/wp-content/uploads/' . $year . '/' . $month . '/test-image-testsize-999x999.png 999w,' .
    1813                 ' http://example.org/wp-content/uploads/' . $year . '/' . $month . '/test-image-large-150x150.png 150w"' .
     1812            ' srcset="http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year . '/' . $month . '/test-image-testsize-999x999.png 999w,' .
     1813                ' http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year . '/' . $month . '/test-image-large-150x150.png 150w"' .
    18141814                ' sizes="(max-width: 999px) 100vw, 999px" />';
    18151815
Note: See TracChangeset for help on using the changeset viewer.