Changeset 47122 for trunk/tests/phpunit/tests/upload.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/upload.php
r46586 r47122 14 14 15 15 function _reset_options() { 16 // system defaults16 // System defaults. 17 17 update_option( 'upload_path', 'wp-content/uploads' ); 18 18 update_option( 'upload_url_path', '' ); … … 21 21 22 22 function test_upload_dir_default() { 23 // wp_upload_dir() with default parameters 23 // wp_upload_dir() with default parameters. 24 24 $info = wp_upload_dir(); 25 25 $subdir = gmstrftime( '/%Y/%m' ); … … 32 32 33 33 function test_upload_dir_relative() { 34 // wp_upload_dir() with a relative upload path that is not 'wp-content/uploads' 34 // wp_upload_dir() with a relative upload path that is not 'wp-content/uploads'. 35 35 update_option( 'upload_path', 'foo/bar' ); 36 36 $info = _wp_upload_dir(); … … 49 49 $path = '/tmp/wp-unit-test'; 50 50 51 // wp_upload_dir() with an absolute upload path 51 // wp_upload_dir() with an absolute upload path. 52 52 update_option( 'upload_path', $path ); 53 53 54 // doesn't make sense to use an absolute file path without setting the url path54 // Doesn't make sense to use an absolute file path without setting the url path. 55 55 update_option( 'upload_url_path', '/baz' ); 56 56 … … 93 93 94 94 function test_upload_dir_empty() { 95 // upload path setting is empty - it should default to 'wp-content/uploads'95 // Upload path setting is empty - it should default to 'wp-content/uploads'. 96 96 update_option( 'upload_path', '' ); 97 97
Note: See TracChangeset
for help on using the changeset viewer.