Changeset 35346 for trunk/tests/phpunit/tests/media.php
- Timestamp:
- 10/21/2015 10:21:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r35242 r35346 725 725 $expected = array( 726 726 array( 727 'url' => 'http:// example.org/wp-content/uploads/' . $year_month . '/' . $image['sizes']['medium']['file'],727 'url' => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year_month . '/' . $image['sizes']['medium']['file'], 728 728 'descriptor' => 'w', 729 729 'value' => $image['sizes']['medium']['width'], 730 730 ), 731 731 array( 732 'url' => 'http:// example.org/wp-content/uploads/' . $year_month . '/' . $image['sizes']['large']['file'],732 'url' => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year_month . '/' . $image['sizes']['large']['file'], 733 733 'descriptor' => 'w', 734 734 'value' => $image['sizes']['large']['width'], 735 735 ), 736 736 array( 737 'url' => 'http:// example.org/wp-content/uploads/' . $image['file'],737 'url' => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image['file'], 738 738 'descriptor' => 'w', 739 739 'value' => $image['width'], … … 767 767 $expected = array( 768 768 array( 769 'url' => 'http:// example.org/wp-content/uploads/' . $image['sizes']['medium']['file'],769 'url' => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image['sizes']['medium']['file'], 770 770 'descriptor' => 'w', 771 771 'value' => $image['sizes']['medium']['width'], 772 772 ), 773 773 array( 774 'url' => 'http:// example.org/wp-content/uploads/' . $image['sizes']['large']['file'],774 'url' => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image['sizes']['large']['file'], 775 775 'descriptor' => 'w', 776 776 'value' => $image['sizes']['large']['width'], 777 777 ), 778 778 array( 779 'url' => 'http:// example.org/wp-content/uploads/' . $image['file'],779 'url' => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image['file'], 780 780 'descriptor' => 'w', 781 781 'value' => $image['width'], … … 873 873 $year_month = date('Y/m'); 874 874 875 $expected = 'http:// example.org/wp-content/uploads/' . $year_month = date('Y/m') . '/'875 $expected = 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year_month = date('Y/m') . '/' 876 876 . $image['sizes']['medium']['file'] . ' ' . $image['sizes']['medium']['width'] . 'w, '; 877 $expected .= 'http:// example.org/wp-content/uploads/' . $year_month = date('Y/m') . '/'877 $expected .= 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year_month = date('Y/m') . '/' 878 878 . $image['sizes']['large']['file'] . ' ' . $image['sizes']['large']['width'] . 'w, '; 879 $expected .= 'http:// example.org/wp-content/uploads/' . $image['file'] . ' ' . $image['width'] .'w';879 $expected .= 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image['file'] . ' ' . $image['width'] .'w'; 880 880 881 881 $this->assertSame( $expected, $sizes );
Note: See TracChangeset
for help on using the changeset viewer.