Connection Refused while testing in Laravel

While you are running the test case in Laravel, you may catch this error as image shown below.

The error said your configuration was wrong. So, you need to check it. There is a difference a bit in the Testing environment is the Laravel App is using another configuration file. It used the file name  `.env.testing`. So you need to update that file same with .env file.