This might be something of a niche case, but I'm having some trouble with the test runner on PHPStorm. I'm running Windows 11, WSL2 (Ubuntu 20.04) and Docker Desktop, pretty much the default setup for Laravel Sail.
The integrated Xdebug stuff works fine, I'm just having trouble with the CLI Interpreter. It's set up to connect to the existing cluster and attach into the app container, since the tests need to be able to run against the PostgreSQL container.
The problem is: PHPStorm attaches as the root user. When I run tests using the built-in tools, the resulting folders/files created by the tests are all owned by the root user, instead of the "sail" user which is the default inside the container.
In short: How do I change the user that PHPStorm tries to connect into the container with?