You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing a plugin with the command php artisan plugin:test PLUGIN.NAME the environment variables defined in the phpunit.xml file are ignored destroying, in my case, the database state.
The only way that I was able to run the test in another set of env variables is to create an .env.testing file and then, run the command forcing the enviroment php artisan plugin:test PLUGIN.NAME --env=testing.
If i run the command ..\..\..\vendor\bin\phpunit, in the plugin's folder, everything works correctly even without the .env.testing file.
October version is 3.6.18, phpunit is 10.*, php is 8.1.28 and I am using Window 10.
Thank you.
The text was updated successfully, but these errors were encountered:
Hello,
When testing a plugin with the command
php artisan plugin:test PLUGIN.NAME
the environment variables defined in the phpunit.xml file are ignored destroying, in my case, the database state.The only way that I was able to run the test in another set of env variables is to create an .env.testing file and then, run the command forcing the enviroment
php artisan plugin:test PLUGIN.NAME --env=testing
.If i run the command
..\..\..\vendor\bin\phpunit
, in the plugin's folder, everything works correctly even without the .env.testing file.October version is 3.6.18, phpunit is 10.*, php is 8.1.28 and I am using Window 10.
Thank you.
The text was updated successfully, but these errors were encountered: