Opened 14 months ago

Closed 11 months ago

Last modified 11 months ago

#27 closed defect (fixed)

WP_CONTENT_URL and other constants are not properly set

Reported by: nacin Owned by: westi
Priority: normal Milestone: Legacy - Improve Framework
Component: Test Framework Keywords:
Cc:

Description

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.

Change History (3)

(In [584]) Fix failing tests in TestUploadFunctions?. see #27.

  • Resolution set to fixed
  • Status changed from new to closed

(In [800]) Port test_uploads.php. fixes #70. fixes #27.

(In [823]) Port pluggable.php tests. fixes #87.

PHPMailer tests must wait for the mock to be ported. see #27. currently marked as skipped.

Note: See TracTickets for help on using tickets.