Initial Commit

This commit is contained in:
2019-11-21 12:25:31 +01:00
commit f4aabcb9b1
13959 changed files with 787761 additions and 0 deletions

23
unit-tests.sh Normal 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