[Wp-unit-tests] [WordPress Unit Tests] #27: WP_CONTENT_URL and other constants are not properly set

WordPress Unit Tests noreply at wordpress.org
Tue Mar 20 19:38:26 UTC 2012


#27: WP_CONTENT_URL and other constants are not properly set
----------------------------+------------------------------------
 Reporter:  nacin           |      Owner:  westi
     Type:  defect          |     Status:  new
 Priority:  major           |  Milestone:  Improve Test Framework
Component:  Test Framework  |    Version:
 Keywords:                  |
----------------------------+------------------------------------
 Our test runner includes the WordPress bootstrap then installs WordPress,
 and there's little way around this.

 One side effect: get_option('siteurl') returns false, which means we end
 up with a WP_CONTENT_URL of '/wp-content' rather than an absolute URL.
 This causes a number of the test_uploads.php tests to fail, as they check
 wp_upload_dir() and rely on WP_CONTENT_URL to be absolute.

-- 
Ticket URL: <http://unit-tests.trac.wordpress.org/ticket/27>
WordPress Unit Tests <http://unit-tests.trac.wordpress.org>
My example project


More information about the wp-unit-tests mailing list