|
|
il y a 1 an | |
|---|---|---|
| .. | ||
| Factory | il y a 1 an | |
| OrganizationFixtures.php | il y a 1 an | |
| PersonFixtures.php | il y a 1 an | |
| readme.md | il y a 1 an | |
Pour regénérer le SQL de la base de données de test, suivez ces étapes :
mysql --user=root --password=mysql660 --host=127.0.0.1 --port=3306
DROP DATABASE IF EXISTS opentalent_test; EXIT;
mysqldump --user=root --password=mysql660 --host=localhost --port=3306 --default-character-set=utf8 --single-transaction=TRUE --no-data --skip-triggers "opentalent" | sed 's/ AUTO_INCREMENT=[0-9]*//g' > opentalent_test.sql
mysql --user=root --password=mysql660 --host=127.0.0.1 --port=3306
CREATE DATABASE opentalent_test;
EXIT;
mysql --user=root --password=mysql660 --host=127.0.0.1 --port=3306 -D opentalent_test < opentalent_test.sql
bin/console --env=staging doctrine:schema:update
bin/console --env=staging d:f:l
php bin/phpunit
ou mettre le path relatif :
php bin/phpunit tests/Application/PublicEventsTest.php
php bin/phpunit tests/Application/Person/PersonTest.php php bin/phpunit tests/Application/Profile/AccessProfileTest.php php bin/phpunit tests/Application/Utils/GpsCoordinateTest.php php bin/phpunit tests/Application/Enum/EnumTest.php php bin/phpunit tests/Application/Mobyt/MobytUserStatusTest.php php bin/phpunit tests/Application/Organization/ParametersTest.php
// option sms : settings -> id 3600 // cotisation -> network Organization -> cmf