[wp-trac] [WordPress Trac] #50266: Had to specify mysql socket to run php automated test
WordPress Trac
noreply at wordpress.org
Wed May 27 18:13:49 UTC 2020
#50266: Had to specify mysql socket to run php automated test
-------------------------+-----------------------------
Reporter: mmarco9 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: minor | Keywords:
Focuses: docs |
-------------------------+-----------------------------
I had to add mysql socket information to be able to run `phpunit`. Without
it, phpunit complained that it could not connect to database. Hopefully
someone can confirm this and add this information to the docs.
Example in wp-tests-config.php:
define( 'DB_HOST', 'localhost:/Applications/MAMP/tmp/mysql/mysql.sock' );
I followed all the instructions from here:
https://make.wordpress.org/core/handbook/testing/automated-
testing/phpunit/ . I am using MacOS Catalina 10.15.2.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50266>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list