-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f86a788
commit 3e15008
Showing
5 changed files
with
21 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,7 @@ | |
expectValidationError(fn () => resolve(UpdateUserProfileInformation::class)->update($user, [ | ||
'name' => str_repeat('a', 2), | ||
'email' => '[email protected]', | ||
]), 'name', 'The name must be at least 3 characters.'); | ||
]), 'name', 'The name field must be at least 3 characters.'); | ||
}); | ||
|
||
it('should throw an exception if the name is too long', function () { | ||
|
@@ -96,7 +96,7 @@ | |
expectValidationError(fn () => resolve(UpdateUserProfileInformation::class)->update($user, [ | ||
'name' => 'a'.str_repeat('a', 31), | ||
'email' => '[email protected]', | ||
]), 'name', 'The name must not be greater than 30 characters.'); | ||
]), 'name', 'The name field must not be greater than 30 characters.'); | ||
}); | ||
|
||
it('should throw an exception if the email is missing', function () { | ||
|
@@ -114,7 +114,7 @@ | |
expectValidationError(fn () => resolve(UpdateUserProfileInformation::class)->update($user, [ | ||
'name' => 'Jane Doe', | ||
'email' => str_repeat('#', 256).'@doe.com', | ||
]), 'email', 'The email must not be greater than 255 characters.'); | ||
]), 'email', 'The email field must not be greater than 255 characters.'); | ||
}); | ||
|
||
it('should throw an exception if the email is not an email', function () { | ||
|
@@ -123,5 +123,5 @@ | |
expectValidationError(fn () => resolve(UpdateUserProfileInformation::class)->update($user, [ | ||
'name' => 'Jane Doe', | ||
'email' => str_repeat('#', 256), | ||
]), 'email', 'The email must be a valid email address.'); | ||
]), 'email', 'The email field must be a valid email address.'); | ||
}); |
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