Make WordPress Core


Ignore:
Timestamp:
02/26/2016 12:25:10 AM (8 years ago)
Author:
johnbillion
Message:

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

See #34000

File:
1 edited

Legend:

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

    r36565 r36717  
    8383
    8484    function test_upload_path_absolute() {
    85         update_option( 'upload_url_path', 'http://example.org/asdf' );
     85        update_option( 'upload_url_path', 'http://' . WP_TESTS_DOMAIN . '/asdf' );
    8686
    8787        // Use `_wp_upload_dir()` directly to bypass caching and work with the changed options.
     
    9090        $subdir = gmstrftime('/%Y/%m');
    9191
    92         $this->assertEquals( 'http://example.org/asdf' . $subdir, $info['url'] );
     92        $this->assertEquals( 'http://' . WP_TESTS_DOMAIN . '/asdf' . $subdir, $info['url'] );
    9393        $this->assertEquals( ABSPATH . 'wp-content/uploads' . $subdir, $info['path'] );
    9494        $this->assertEquals( $subdir, $info['subdir'] );
Note: See TracChangeset for help on using the changeset viewer.