Opened 3 years ago
Last modified 3 years ago
#50266 new enhancement
Had to specify mysql socket to run php automated test
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | minor | Version: | |
Component: | Build/Test Tools | Keywords: | |
Focuses: | docs | Cc: |
Description
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.
Note: See
TracTickets for help on using
tickets.