Skip to content

Conversation

@anonymoususer72041
Copy link
Contributor

Summary

This PR improves the local Docker testing setup by ensuring the PHP test container runs in the repository root (/var/www/public) and by documenting the missing dependency installation step for fresh checkouts.

It adds working_dir: /var/www/public to the php service in docker/docker-compose-test.yml and updates README-testing.md to instruct users to run composer install (via a Composer Docker image) so the vendor/ directory and ./vendor/bin/phpunit are available.

Motivation

Following README-testing.md on a fresh checkout can currently fail because vendor/ is not committed and therefore ./vendor/bin/phpunit does not exist until Composer dependencies are installed.

Additionally, the PHP test container’s default working directory may not be the repository mount path, causing relative commands in the README to fail even after installing dependencies.

These changes make the testing instructions work out of the box for new contributors and reduce confusion when running PHPUnit/Behat inside the test container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant