Changeset 45424 for trunk/tests/phpunit/tests/media.php
- Timestamp:
- 05/26/2019 12:11:37 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r44785 r45424 1429 1429 $_wp_additional_image_sizes = wp_get_additional_image_sizes(); 1430 1430 1431 $year_month = date( 'Y/m' );1431 $year_month = gmdate( 'Y/m' ); 1432 1432 $image_meta = wp_get_attachment_metadata( self::$large_id ); 1433 1433 $uploads_dir_url = 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/'; … … 1551 1551 $_wp_additional_image_sizes = wp_get_additional_image_sizes(); 1552 1552 1553 $year_month = date( 'Y/m' );1553 $year_month = gmdate( 'Y/m' ); 1554 1554 $image_meta = wp_get_attachment_metadata( self::$large_id ); 1555 1555 $uploads_dir_url = 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/'; … … 1832 1832 $srcset = wp_get_attachment_image_srcset( self::$large_id, $size_array, $image_meta ); 1833 1833 1834 $year_month = date( 'Y/m' );1834 $year_month = gmdate( 'Y/m' ); 1835 1835 $uploads_dir = 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/'; 1836 1836 … … 2229 2229 2230 2230 $actual = wp_get_attachment_image( self::$large_id, 'testsize' ); 2231 $year = date( 'Y' );2232 $month = date( 'm' );2231 $year = gmdate( 'Y' ); 2232 $month = gmdate( 'm' ); 2233 2233 2234 2234 $expected = '<img width="999" height="999" src="http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year . '/' . $month . '/test-image-testsize-999x999.png"' .
Note: See TracChangeset
for help on using the changeset viewer.