From 20eb6402fde60edc3a744ce99d78787386fa53a9 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Wed, 21 Oct 2015 22:21:51 +0000 Subject: [PATCH] Correct some more tests which were using `example.org` instead of `WP_TESTS_DOMAIN`. See #33641, #34000 git-svn-id: https://develop.svn.wordpress.org/trunk@35346 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/media.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/phpunit/tests/media.php b/tests/phpunit/tests/media.php index 24fbfd4e66..1e60dfb669 100644 --- a/tests/phpunit/tests/media.php +++ b/tests/phpunit/tests/media.php @@ -724,17 +724,17 @@ EOF; $expected = array( array( - 'url' => 'http://example.org/wp-content/uploads/' . $year_month . '/' . $image['sizes']['medium']['file'], + 'url' => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year_month . '/' . $image['sizes']['medium']['file'], 'descriptor' => 'w', 'value' => $image['sizes']['medium']['width'], ), array( - 'url' => 'http://example.org/wp-content/uploads/' . $year_month . '/' . $image['sizes']['large']['file'], + 'url' => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year_month . '/' . $image['sizes']['large']['file'], 'descriptor' => 'w', 'value' => $image['sizes']['large']['width'], ), array( - 'url' => 'http://example.org/wp-content/uploads/' . $image['file'], + 'url' => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image['file'], 'descriptor' => 'w', 'value' => $image['width'], ), @@ -766,17 +766,17 @@ EOF; $expected = array( array( - 'url' => 'http://example.org/wp-content/uploads/' . $image['sizes']['medium']['file'], + 'url' => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image['sizes']['medium']['file'], 'descriptor' => 'w', 'value' => $image['sizes']['medium']['width'], ), array( - 'url' => 'http://example.org/wp-content/uploads/' . $image['sizes']['large']['file'], + 'url' => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image['sizes']['large']['file'], 'descriptor' => 'w', 'value' => $image['sizes']['large']['width'], ), array( - 'url' => 'http://example.org/wp-content/uploads/' . $image['file'], + 'url' => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image['file'], 'descriptor' => 'w', 'value' => $image['width'], ), @@ -872,11 +872,11 @@ EOF; $image = wp_get_attachment_metadata( self::$large_id ); $year_month = date('Y/m'); - $expected = 'http://example.org/wp-content/uploads/' . $year_month = date('Y/m') . '/' + $expected = 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year_month = date('Y/m') . '/' . $image['sizes']['medium']['file'] . ' ' . $image['sizes']['medium']['width'] . 'w, '; - $expected .= 'http://example.org/wp-content/uploads/' . $year_month = date('Y/m') . '/' + $expected .= 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year_month = date('Y/m') . '/' . $image['sizes']['large']['file'] . ' ' . $image['sizes']['large']['width'] . 'w, '; - $expected .= 'http://example.org/wp-content/uploads/' . $image['file'] . ' ' . $image['width'] .'w'; + $expected .= 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image['file'] . ' ' . $image['width'] .'w'; $this->assertSame( $expected, $sizes ); }