-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add customer name, phone number and email in email notification to fa…
…rmer
- Loading branch information
Benjamin POCHAT
authored and
Benjamin POCHAT
committed
Feb 10, 2021
1 parent
2ce2b7e
commit e04d066
Showing
2 changed files
with
32 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,19 @@ public void notifyByMail_should_format_a_mail_correctly() { | |
verify(spyedService).sendMail( | ||
eq("[email protected]"), | ||
eq("nouvelle commande !"), | ||
eq("<div>La commande n° 1 a été enregistrée</div><div><ul><li>Montant de la commande : 1350.0 €TTC</li><li>Quantité commandée : 100.0 kg</li></ul></div>")); | ||
eq("<div>La commande n° 1 a été enregistrée</div>" + | ||
"<div>" + | ||
"<ul>" + | ||
"<li>Client :" + | ||
"<ul>" + | ||
"<li>Nom : Virginie WALTER</li>" + | ||
"<li>Email : [email protected]</li>" + | ||
"<li>Téléphone : 04 32 10 98 87</li>" + | ||
"</ul>" + | ||
"</li>" + | ||
"<li>Montant de la commande : 1350.0 €TTC</li>" + | ||
"<li>Quantité commandée : 100.0 kg</li>" + | ||
"</ul>" + | ||
"</div>")); | ||
} | ||
} |