File tree 1 file changed +2
-4
lines changed
src/Symfony/Component/Validator/Tests/Constraints
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public function testValidUrls($url)
65
65
*/
66
66
public function testValidUrlsWithNewLine ($ url )
67
67
{
68
- $ this ->validator ->validate ($ url ."\n" , new Url ());
68
+ $ this ->validator ->validate ($ url ."\n" , new Url (requireTld: false ));
69
69
70
70
$ this ->buildViolation ('This value is not a valid URL. ' )
71
71
->setParameter ('{{ value }} ' , '" ' .$ url ."\n" .'" ' )
@@ -108,9 +108,7 @@ public function testValidRelativeUrl($url)
108
108
*/
109
109
public function testValidRelativeUrlWithNewLine (string $ url )
110
110
{
111
- $ constraint = new Url ([
112
- 'relativeProtocol ' => true ,
113
- ]);
111
+ $ constraint = new Url (relativeProtocol: true , requireTld: false );
114
112
115
113
$ this ->validator ->validate ($ url ."\n" , $ constraint );
116
114
You can’t perform that action at this time.
0 commit comments