Initial commit

This commit is contained in:
2021-01-19 18:19:37 +01:00
commit 6524a071df
14506 changed files with 1808535 additions and 0 deletions

23
unit-tests.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# Prepare environment for Thelia unit tests
echo -e "\n\033[01;34m[INFO] Clearing test cache\033[00m\n"
php Thelia cache:clear --env=test
echo -e "\n\033[01;34m[INFO] Downloading vendors\033[00m\n"
composer install --prefer-dist
echo -e "\n\033[01;34m[INFO] Refreshing Module list\033[00m\n"
php Thelia module:refresh
echo -e "\n\033[01;34m[INFO] Activating Hook Test Module\033[00m\n"
php Thelia module:activate HookTest
echo -e "\n\033[01;34m[INFO] Running unit tests\033[00m\n"
./bin/phpunit
echo -e "\n\033[01;34m[INFO] Desactivating Hook Test Module\033[00m\n"
php Thelia module:deactivate HookTest
echo -e "\n\033[01;34m[INFO] Removing hook test template\033[00m\n"
rm -rf templates/frontOffice/hooktest