FMCorz / mdk

Moodle Development Kit. A collection of tools meant to make developers' lives easier.
GNU General Public License v3.0
87 stars 47 forks source link

Allow forceCfg to also set a non-scalar value such as behat_profiles #191

Closed mudrd8mz closed 4 years ago

mudrd8mz commented 4 years ago

In order to make Behat running in my environment, I have to set the behat_profiles in my config.php. However, every time I re-install an MDK instance, I loose that setting and have to add it back to the new config.php. To avoid that, I would like to add the behat_profiles (and also behat_parallel_run which I also often define) into the forceCfg. However, at the moment, only strings and integer values are supported there.

This pull request adds support for non-scalar values - dictionaries (associative arrays) and lists (non-associative arrays) - in the forceCfg.

junpataleta commented 4 years ago

Thanks, David. This has now been merged!