maha bouchiba 2c51844686 tests applicatifs 1 éve
..
Factory 2c51844686 tests applicatifs 1 éve
OrganizationFixtures.php 2c51844686 tests applicatifs 1 éve
PersonFixtures.php f091cff7ec apply cs fixer 1 éve
readme.md 2c51844686 tests applicatifs 1 éve

readme.md

Générer la DB de test et charger les fixtures

Regénérer le SQL de création de la DB de test

Pour regénérer le SQL de la base de données de test, suivez ces étapes :

  1. Connectez-vous à MySQL dans le docker mariaDb :
   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

  1. Dans le docker ap2i : Regénérer les vues et jouer les fixtures
   bin/console --env=staging doctrine:schema:update
   bin/console --env=staging d:f:l
  1. Pour lancer les tests :
   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