2
In the Laravel 4
, we have three types of environments that can be defined: local
, production
and testing
.
I even published something related to the configuration of the environment local
here in : How to define routes in Laravel that work only in development environment?
I like very much to use the above configuration to define the data of the local database, and already leave the production configuration ready, for when it is time to upload the file, not have to touch any configuration.
However, when I run the tests of phpunit
(which would invoke the environment of testing
of Laravel 4
), the database settings used have been those of the production
.
I know you have a folder called app/config/testing
, where I can also add the database.php
, but would not like to be "copying and pasting" the database settings local
to put in the testing
, but only use the same configuration.
What’s the best way to do it in Laravel 4
?