Hi,
I i'm trying to write an unit test un phpunit. I am able to set my config value one time but unable to change it live in my unittest. Do someone know how to do it ?
Thanks you,
Gilles-Philippe
Several unit tests in core code do this, so search and find one to see how it is done. (Probably you use set_config.)
Finally, the problem was not related with set_config(). It indeed work as espected.
I'm writing a unit test for the get_plugins_import() method mod/grade/lib.php because it does not reset even by calling the test method: resetAfterTest().
I think I have found a solution. Thank you for your help and sorry for the inconvenience!