Here is my project architecture components :
- Front-end (Drupal crm)
- Symfony 2 services (API layer)
- CRM (external service to store users)
I would like to setup functionnal testing with codeception to test subscription part of my application. Now, here is the process for subscription :
1/ Display form in front-end
2/ When form is submitted data is post to Services
3/ Services establish a connexion with the CRM and return a Json response to front-end.
4/ Front-end redirect and display a success message (or errors).
I need to clean up my data before run my test (test is get on /subscription, fill form, submit and test response). In fact, if a user exist in CRM, I need to delete it if I want test a success case. How can I do this ?
Aucun commentaire:
Enregistrer un commentaire