dropwhale
dropwhale copied to clipboard
Permission denied with PHPUnit Functional tests
It seems like there is some file perms issues preventing PHPUnit functional tests to be run totally, regardless of where they are executed (using .docker/bash.sh
or .docker/phpunit.sh
). Just to make sure I tested this also with Examples -module's submodule pager_example
.
1) Drupal\Tests\pager_example\Functional\PagerExampleTest::testPagerExamplePage Exception: Warning: mkdir(): Permission denied Drupal\Component\PhpStorage\FileStorage->createDirectory()() (Line: 165)
I was not able to figure out what is the real reason for this, but I suspect the PHPUnit output -folder creation may fail.

Did you found out what the problem was at the end? I think we're experiencing the same issue with mkdir permission denied on test run.
There's a PHPUnit output directory? o_O
If so, we should add it to the new reset.yml playbook in 2.1. It's a lot easier to make sure directories are created as expected now that I've added Ansible to the stack.
Can you try the develop branch of Dropwhale? I added some steps to the reset playbook that creates and configures phpunit.xml.
any update on this issue
I think this was fixed in Dropwhale 2.4. You might need to delete your containers do a pull, and update the dropwhale script files:
docker-compose rm -fv
docker-compose pull