Make WordPress Core

Changeset 35346


Ignore:
Timestamp:
10/21/2015 10:21:51 PM (11 years ago)
Author:
johnbillion
Message:

Correct some more tests which were using example.org instead of WP_TESTS_DOMAIN.

See #33641, #34000

File:
1 edited

Legend:

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

    r35242 r35346  
    725725                $expected = array(
    726726                        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'],
    728728                                'descriptor' => 'w',
    729729                                'value'      => $image['sizes']['medium']['width'],
    730730                        ),
    731731                        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'],
    733733                                'descriptor' => 'w',
    734734                                'value'      => $image['sizes']['large']['width'],
    735735                        ),
    736736                        array(
    737                                 'url'        => 'http://example.org/wp-content/uploads/' . $image['file'],
     737                                'url'        => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image['file'],
    738738                                'descriptor' => 'w',
    739739                                'value'      => $image['width'],
     
    767767                $expected = array(
    768768                        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'],
    770770                                'descriptor' => 'w',
    771771                                'value'      => $image['sizes']['medium']['width'],
    772772                        ),
    773773                        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'],
    775775                                'descriptor' => 'w',
    776776                                'value'      => $image['sizes']['large']['width'],
    777777                        ),
    778778                        array(
    779                                 'url'        => 'http://example.org/wp-content/uploads/' . $image['file'],
     779                                'url'        => 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image['file'],
    780780                                'descriptor' => 'w',
    781781                                'value'      => $image['width'],
     
    873873                $year_month = date('Y/m');
    874874
    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') . '/'
    876876                        . $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') . '/'
    878878                        . $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';
    880880
    881881                $this->assertSame( $expected, $sizes );
Note: See TracChangeset for help on using the changeset viewer.