mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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:
@@ -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'] );
|
||||
|
||||
Reference in New Issue
Block a user