Changeset 36717 for trunk/tests/phpunit/tests/upload.php
- Timestamp:
- 02/26/2016 12:25:10 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/upload.php
r36565 r36717 83 83 84 84 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' ); 86 86 87 87 // Use `_wp_upload_dir()` directly to bypass caching and work with the changed options. … … 90 90 $subdir = gmstrftime('/%Y/%m'); 91 91 92 $this->assertEquals( 'http:// example.org/asdf' . $subdir, $info['url'] );92 $this->assertEquals( 'http://' . WP_TESTS_DOMAIN . '/asdf' . $subdir, $info['url'] ); 93 93 $this->assertEquals( ABSPATH . 'wp-content/uploads' . $subdir, $info['path'] ); 94 94 $this->assertEquals( $subdir, $info['subdir'] );
Note: See TracChangeset
for help on using the changeset viewer.