- I setup PhpStorm: PHP, PHPUnit with Docker
- I see schema in PhpStorm/Database viewer
- I can use database in my application: register etc.
- I can run phpunit in PhpStorm
- But if I would like use database in tests, then I get the following error:
Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name does not resolve (SQL: select * from
tablename)
The test working in container but broken in IDE. Do you have any ideas what is the problem in PhpStorm?