Skip to content

Commit

Permalink
#122 Fix phpunit.xml being break after anoter lando rebuild.
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirsman authored and tormi committed Mar 13, 2021
1 parent fff1b52 commit 95ba4a6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .lando/phpunit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@ set -exu
# Configure PHPUnit tests for the Lando environment.
# @see: https://agile.coop/blog/drupal-phpunit-tests-lando/

cp -n web/core/phpunit.xml.dist phpunit.xml
sed -i 's|tests\/bootstrap\.php|/app/web/core/tests/bootstrap.php|g' phpunit.xml
PHPUNIT_CONFIG=/app/phpunit.xml

# Copy and edit the phpunit.xml.dist only once.
if [ ! -f "$PHPUNIT_CONFIG" ]; then
cd /app
cp -n web/core/phpunit.xml.dist phpunit.xml
sed -i 's|tests\/bootstrap\.php|/app/web/core/tests/bootstrap.php|g' phpunit.xml
fi

0 comments on commit 95ba4a6

Please sign in to comment.