Override system.php config values for testing?

I’m trying to write some tests (using Codeception), and I’d like to override some system config values (i.e. those defined in var/config/system.php) just for the test environment. Specifically, I’d like to use different SMTP settings. Is this possible? Any suggestions?

I’m using Pimcore 5.8.5, in case that matters.

You can have one system.php per environment, like system_test.php. Please see link below.

https://pimcore.com/docs/5.x/Development_Documentation/Deployment/Multi_Environment.html

1 Like

Thank you! I read a bunch of the documentation, but clearly not enough!