Hello!
After writing my cookbook recipe for testing plugins, I decided to create a utility package that simplifies the process.
You simply install the package in your Kirby installation where you develop your plugins and the utility allows you to easily change the Kirby roots. You can have a tests
folder in each plugin with a roots
folder inside that changes all necessary roots accordingly, while the base installation roots can be used as global/default roots.
I’m using it for my plugins and it’s pretty useful. You can even modify each plugin’s content in the Panel since root rewriting works there as well. It works with PHPUnit too.
Check it: