From 2c3194dd69aa8865f2e10bef4f5ddb654ff7c642 Mon Sep 17 00:00:00 2001 From: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com> Date: Mon, 12 Jan 2026 14:05:12 +0100 Subject: [PATCH 1/3] Update docker-compose-test.yml working directory --- docker/docker-compose-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/docker-compose-test.yml b/docker/docker-compose-test.yml index cbe6fb490..2d728bcd3 100644 --- a/docker/docker-compose-test.yml +++ b/docker/docker-compose-test.yml @@ -12,6 +12,7 @@ services: php: container_name: opencats_test_php image: opencats/php-base:7.2-fpm-alpine + working_dir: /var/www/public volumes_from: - opencatsdata From d18a01cd9edf900934b10b8bfaf3a5657a3d87c7 Mon Sep 17 00:00:00 2001 From: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com> Date: Mon, 12 Jan 2026 14:07:07 +0100 Subject: [PATCH 2/3] Update README-testing.md with composer install step --- README-testing.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README-testing.md b/README-testing.md index 7a7c5b593..0c7e99d4b 100644 --- a/README-testing.md +++ b/README-testing.md @@ -29,7 +29,12 @@ To mirror the CI environment on your machine: docker compose -f docker-compose-test.yml up -d ``` -3. **Run the suites:** +3. **Install PHP dependencies (Composer):** + ```bash + docker run --rm -v "$(pwd)/..":/app -w /app composer:2 composer install --no-interaction --prefer-dist --ignore-platform-reqs + ``` + +4. **Run the suites:** * **PHPUnit:** `docker exec -it opencats_test_php ./vendor/bin/phpunit src/OpenCATS/Tests/IntegrationTests` * **Behat:** `docker exec -it opencats_test_php ./vendor/bin/behat -c ./test/behat.yml` From 634e535a6fb168c58a7121c204140b5a65d159df Mon Sep 17 00:00:00 2001 From: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com> Date: Fri, 16 Jan 2026 11:38:20 +0100 Subject: [PATCH 3/3] Update README-testing.md with UnitTests --- README-testing.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README-testing.md b/README-testing.md index 0c7e99d4b..4238b6e48 100644 --- a/README-testing.md +++ b/README-testing.md @@ -35,7 +35,8 @@ To mirror the CI environment on your machine: ``` 4. **Run the suites:** - * **PHPUnit:** `docker exec -it opencats_test_php ./vendor/bin/phpunit src/OpenCATS/Tests/IntegrationTests` + * **PHPUnit Unit Tests:** `docker exec -it opencats_test_php ./vendor/bin/phpunit src/OpenCATS/Tests/UnitTests` + * **PHPUnit Integration Tests:** `docker exec -it opencats_test_php ./vendor/bin/phpunit src/OpenCATS/Tests/IntegrationTests` * **Behat:** `docker exec -it opencats_test_php ./vendor/bin/behat -c ./test/behat.yml` ---