[buddypress-trac] [BuddyPress Trac] #5376: PHPUnit Test Environment Variable
buddypress-trac
noreply at wordpress.org
Wed May 14 00:05:31 UTC 2014
#5376: PHPUnit Test Environment Variable
-------------------------+---------------------------
Reporter: netweb | Owner: boonebgorges
Type: enhancement | Status: reopened
Priority: normal | Milestone: 2.1
Component: Unit Tests | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+---------------------------
Changes (by netweb):
* keywords: needs-patch => has-patch
* status: closed => reopened
* resolution: fixed =>
Comment:
Boone, thanks,
Though when `WP_TESTS_DIR` is not set and only `WP_DEVELOP_DIR`
(same/equiv folder as `WP_ROOT_DIR`) is set an error occurs when defining
`WP_TESTS_DIR` on Line#34 because `WP_ROOT_DIR` does not exist.
Attached patch fixes this by defining `WP_ROOT_DIR` == `WP_DEVELOP_DIR`
Then `define( 'WP_TESTS_DIR', WP_ROOT_DIR . '/tests/phpunit' );` and all
works as expected.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5376#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list