-
Notifications
You must be signed in to change notification settings - Fork 804
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(SW-27151): removes whitespaces from e-Mails
Otherwise they are always validated to false.
- Loading branch information
1 parent
2c71ba6
commit a20bc5e
Showing
2 changed files
with
5 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -246,6 +246,10 @@ public function provideEmails(): Generator | |
'emails' => '[email protected],[email protected],[email protected]', | ||
'expectedIsValid' => true, | ||
]; | ||
yield '3 mails with whitespaces shall be valid' => [ | ||
'emails' => '[email protected] , [email protected] , [email protected]', | ||
'expectedIsValid' => true, | ||
]; | ||
yield '3 mail shall be invalid' => [ | ||
'emails' => '[email protected],[email protected],[email protected]||test', | ||
'expectedIsValid' => false, | ||
|