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

See #34000


git-svn-id: https://develop.svn.wordpress.org/trunk@36717 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2016-02-26 00:25:10 +00:00
parent 1cfdb05750
commit 701f639e30
3 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -82,14 +82,14 @@ class Tests_Upload extends WP_UnitTestCase {
}
function test_upload_path_absolute() {
update_option( 'upload_url_path', 'http://example.org/asdf' );
update_option( 'upload_url_path', 'http://' . WP_TESTS_DOMAIN . '/asdf' );
// Use `_wp_upload_dir()` directly to bypass caching and work with the changed options.
// It doesn't create the /year/month directories.
$info = _wp_upload_dir();
$subdir = gmstrftime('/%Y/%m');
$this->assertEquals( 'http://example.org/asdf' . $subdir, $info['url'] );
$this->assertEquals( 'http://' . WP_TESTS_DOMAIN . '/asdf' . $subdir, $info['url'] );
$this->assertEquals( ABSPATH . 'wp-content/uploads' . $subdir, $info['path'] );
$this->assertEquals( $subdir, $info['subdir'] );
$this->assertEquals( false, $info['error'] );