From b60cd7ae1b0c934cc1d341daed4de98f904fc374 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 19 Feb 2024 10:52:09 +0000 Subject: [PATCH] Revert "Make the PHP test runner conifigurable" This reverts commit 5f62b02d14e6a253816dd5be94247ce83ea429cd. --- resources/build.defaults.yaml | 3 --- src/DataTransferObject/ConfigDto.php | 4 ---- templates/php/drupal/run.twig | 4 ++-- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/resources/build.defaults.yaml b/resources/build.defaults.yaml index 58c67f5..ffe7ae3 100644 --- a/resources/build.defaults.yaml +++ b/resources/build.defaults.yaml @@ -1,9 +1,6 @@ drupal: docroot: web -php: - test_runner: phpunit - experimental: runStaticAnalysisOnTests: false diff --git a/src/DataTransferObject/ConfigDto.php b/src/DataTransferObject/ConfigDto.php index 4e2fe71..3cc5016 100644 --- a/src/DataTransferObject/ConfigDto.php +++ b/src/DataTransferObject/ConfigDto.php @@ -239,10 +239,6 @@ final class ConfigDto 'phpunit' => new Assert\Optional( new Assert\IsFalse(), ), - - 'test_runner' => new Assert\Optional( - new Assert\Choice(['phpunit', 'pest', 'paratest']), - ), ], )] public array $php; diff --git a/templates/php/drupal/run.twig b/templates/php/drupal/run.twig index 6e58a02..d69cc0c 100755 --- a/templates/php/drupal/run.twig +++ b/templates/php/drupal/run.twig @@ -111,9 +111,9 @@ function stop { docker compose down } -{% if not php.phpunit is same as false and not php.test_runner is same as false %} +{% if not php.phpunit is same as false %} function test { - _exec php {{ php.test_runner }} --colors=always "${@}" + _exec php phpunit --colors=always "${@}" } {% endif %}