Skip to content

Commit 87ebc2d

Browse files
authored
chore: Update AddLinkFeatureTest validation error
Update AddLinkFeatureTest validation errors to make test succeed in Laravel 9.
1 parent ee98bdd commit 87ebc2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/getting-started/micro.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ public function test_link_is_not_created_with_invalid_url($case)
771771
'description' => 'Example description',
772772
]);
773773
774-
$response->assertSessionHasErrors(['url' => 'The url format is invalid.']);
774+
$response->assertSessionHasErrors(['url' => 'The url must be a valid URL.']);
775775
}
776776
```
777777
@@ -790,9 +790,9 @@ public function test_max_length_fails_when_too_long()
790790
->post('/submit', compact('title', 'url', 'description'));
791791
792792
$response->assertSessionHasErrors([
793-
'url' => 'The url may not be greater than 255 characters.',
794-
'title' => 'The title may not be greater than 255 characters.',
795-
'description' => 'The description may not be greater than 255 characters.',
793+
'url' => 'The url must not be greater than 255 characters.',
794+
'title' => 'The title must not be greater than 255 characters.',
795+
'description' => 'The description must not be greater than 255 characters.',
796796
]);
797797
}
798798

0 commit comments

Comments
 (0)