[wp-trac] [WordPress Trac] #49663: Fix PHPUnit bootstrap to install from the same directory where the tests will be run

WordPress Trac noreply at wordpress.org
Wed Mar 18 02:52:35 UTC 2020


#49663: Fix PHPUnit bootstrap to install from the same directory where the tests
will be run
------------------------------+---------------------
 Reporter:  azaozz            |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  5.5
Component:  Build/Test Tools  |     Version:  5.1
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+---------------------

Comment (by azaozz):

 Happens because `WP_RUN_CORE_TESTS` is not defined when PHP is run from
 the cli:
 https://core.trac.wordpress.org/browser/tags/5.3.2/tests/phpunit/includes/bootstrap.php#L100.

 Seems a simple fix would be to pass another param to `system( php ... )`
 similarly to `$config_file_path` and `$multisite`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49663#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list