FlorentTorregrosa / docker-drupal-project

Repository moved to https://gitlab.com/florenttorregrosa-drupal/docker-drupal-project
4 stars 2 forks source link

paranoia + simpletest #45

Closed FlorentTorregrosa closed 4 years ago

FlorentTorregrosa commented 4 years ago

In run-tests-phpunit.php

echo -e "${LIGHT_GREEN}Workaround Drupal paranoia: make symlink to simpletest.${NC}"
rm -rf $WWW_PATH/sites/simpletest
ln -s $APP_PATH/sites/simpletest $WWW_PATH/sites/simpletest

echo -e "${LIGHT_GREEN}Run tests.${NC}"
sudo -u $WEBSERVER_USER -E $PROJECT_PATH/vendor/bin/phpunit -c $PROJECT_PATH/scripts/tests/phpunit.xml $@