Make WordPress Core

Ticket #36246: 36246.patch

File 36246.patch, 1.3 KB (added by johnbillion, 8 years ago)
  • tests/phpunit/tests/media.php

     
    18071807                $year = date( 'Y' );
    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
    18161816                remove_filter( 'wp_get_attachment_metadata', array( $this, '_filter_36246' ) );