From c1f396bd91a2f6778cc2c45cdf18bc81e76c5c71 Mon Sep 17 00:00:00 2001 From: jackwrfuller Date: Fri, 27 Mar 2026 15:52:53 +1100 Subject: [PATCH] fix test image --- .docker/Dockerfile.test | 5 ++++- composer.json | 18 +++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.docker/Dockerfile.test b/.docker/Dockerfile.test index b2458c7ed..28c81718e 100644 --- a/.docker/Dockerfile.test +++ b/.docker/Dockerfile.test @@ -30,8 +30,11 @@ COPY .docker/images/govcms/mariadb-client.cnf /etc/my.cnf.d # Copy application files from the 'cli' stage to the current stage COPY --from=cli /app /app +# Install dev dependencies (e.g. PHPUnit) excluded from the CLI image. +RUN composer install --dev + # Copy PHPUnit configuration and test files -COPY --from=govcmstesting/tests:3.2.3-php8.3 /tests /app/tests +COPY tests /app/tests # Set an environment variable for the webroot path ENV WEBROOT=web diff --git a/composer.json b/composer.json index 00fc336b1..deeb333f9 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,23 @@ }, "require-dev": { "drupal/core-dev": "^11.0", - "palantirnet/drupal-rector": "^0.20.3" + "palantirnet/drupal-rector": "^0.20.3", + "weitzman/drupal-test-traits": "^2.0", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "drevops/behat-format-progress-fail": "^1.0", + "drevops/behat-screenshot": "^1.2", + "drevops/behat-steps": "^2.1", + "drupal/coder": "^8.3", + "drupal/drupal-extension": "^5.0", + "mglaman/drupal-check": "^1.4", + "palantirnet/drupal-rector": "^0.20", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3", + "phploc/phploc": "*", + "phpmd/phpmd": "*", + "phpunit/phpunit": "*", + "symfony/dependency-injection": "^7", + "symfony/event-dispatcher": "^7" }, "conflict": { "drupal/drupal": "*"