-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from gdubost/feature/22851
[FEATURE#22851] Ajout de la preparation de pieces jointes
- Loading branch information
Showing
12 changed files
with
91 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,16 @@ Scénario: Envoyer un email | |
Alors il ne devrait pas y avoir eu une erreur | ||
Et il doit y avoir un message dans la file "email" avec le corps contenu dans "simple_email_job.json" | ||
|
||
Scénario: Envoyer un email avec des pieces jointes | ||
Quand j'envoie un mail a "[email protected]" avec "[email protected]" avec le titre "title" et le template contenu dans le fichier "simple_template" et les tokens contenus dans "simple_tokens.json" avec comme pièce jointe les fichiers "file1.txt;file2.txt" | ||
Alors il ne devrait pas y avoir eu une erreur | ||
Et il doit y avoir un message dans la file "email" avec le corps contenu dans "email_with_files_job.json" | ||
|
||
Scénario: Envoyer un email avec certaines des pieces jointes qui n'existent pas | ||
Quand j'envoie un mail a "[email protected]" avec "[email protected]" avec le titre "title" et le template contenu dans le fichier "simple_template" et les tokens contenus dans "simple_tokens.json" avec comme pièce jointe les fichiers "file12.txt;file1.txt;file2.txt;file42.txt" | ||
Alors il ne devrait pas y avoir eu une erreur | ||
Et il doit y avoir un message dans la file "email" avec le corps contenu dans "email_with_files_job.json" | ||
|
||
Plan du Scénario: Envoyer un email sans donner d'adresse | ||
Quand j'envoie un mail a "<sender>" avec "<receiver>" avec le titre "title" et le template contenu dans le fichier "simple_template" et les tokens contenus dans "simple_tokens.json" | ||
Alors il devrait y avoir eu une erreur | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Super fichier texte | ||
Trop de trucs ! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Encore trop de trucs cools ! |
16 changes: 16 additions & 0 deletions
16
Tests/Functional/features/notify/results/email_with_files_job.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"from": "[email protected]", | ||
"to": "[email protected]", | ||
"subject": "title", | ||
"content": "Bonjour,\n\nOn va juste tester l'envoi de mail avec un template tout simple et s'apercevoir que ca fonctionne trop super bien.\n\nC'est vraiment m\u00e9ga g\u00e9nial !\n", | ||
"files": [ | ||
{ | ||
"name": "file1.txt", | ||
"content": "U3VwZXIgZmljaGllciB0ZXh0ZQpUcm9wIGRlIHRydWNzICEK" | ||
}, | ||
{ | ||
"name": "file2.txt", | ||
"content": "RW5jb3JlIHRyb3AgZGUgdHJ1Y3MgY29vbHMgIQo=" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters