Initial commit

This commit is contained in:
2020-01-27 08:56:08 +01:00
commit b7525048d6
27129 changed files with 3409855 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