File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 19
19
"require" : {
20
20
"php" : " >=7.2" ,
21
21
"thecodingmachine/graphqlite" : " ~4.0.0" ,
22
- "symfony/validator" : " ^4.0 " ,
22
+ "symfony/validator" : " ^4 | ^5 " ,
23
23
"doctrine/annotations" : " ^1.6"
24
24
},
25
25
"require-dev" : {
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ class User
13
13
{
14
14
/**
15
15
* @Assert\Email(
16
- * message = "The email '{{ value }}' is not a valid email.",
17
- * checkMX = true
16
+ * message = "The email '{{ value }}' is not a valid email."
18
17
* )
19
18
*/
20
19
private $ email ;
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function testEndToEndThrowException(): void
67
67
68
68
$ queryString = '
69
69
mutation {
70
- createUser(email: "foo@fgdjkerbrtehrthjker .com", password: "short") {
70
+ createUser(email: "foofgdjkerbrtehrthjker .com", password: "short") {
71
71
email
72
72
}
73
73
}
@@ -81,7 +81,7 @@ public function testEndToEndThrowException(): void
81
81
$ result ->setErrorFormatter ([WebonyxErrorHandler::class, 'errorFormatter ' ]);
82
82
83
83
$ errors = $ result ->toArray (Debug::RETHROW_UNSAFE_EXCEPTIONS )['errors ' ];
84
- $ this ->assertSame ('The email \'"foo@fgdjkerbrtehrthjker .com" \' is not a valid email. ' , $ errors [0 ]['message ' ]);
84
+ $ this ->assertSame ('The email \'"foofgdjkerbrtehrthjker .com" \' is not a valid email. ' , $ errors [0 ]['message ' ]);
85
85
$ this ->assertSame ('email ' , $ errors [0 ]['extensions ' ]['field ' ]);
86
86
$ this ->assertSame ('Validate ' , $ errors [0 ]['extensions ' ]['category ' ]);
87
87
$ this ->assertSame ('This value is too short. It should have 8 characters or more. ' , $ errors [1 ]['message ' ]);
You can’t perform that action at this time.
0 commit comments