Do you really need Redis in your tests; can't you use the array cache driver instead?
Dec 27, 2020
2
Level 1
Redis connection issue in test environment
Hi, I'm getting a Redis connection error during PHPUnit tests execution:
Predis\Connection\ConnectionException : php_network_getaddresses: getaddrinfo failed: Name or service not known [tcp://redis:6379]
Redis runs as a Docker container and it works fine in a browser or via tinker.
I run tests in PHPStorm using Docker's PHP as an interpreter.
Do you have any ideas?
Please or to participate in this conversation.