mirror of
https://github.com/10h30/Test-Laravel-Validation.git
synced 2026-07-11 10:55:53 +09:00
Fix Task 9 - your own validation rule
This commit is contained in:
@@ -108,7 +108,10 @@ class ValidationTest extends TestCase
|
||||
{
|
||||
$response = $this->post('articles', ['title' => 'lowercase']);
|
||||
$response->assertSessionHasErrors([
|
||||
'title' => 'The title does not start with an uppercased letter.',
|
||||
'title' => 'The title does not start with an uppercased letter',
|
||||
])->assertStatus(302);
|
||||
|
||||
$response = $this->post('articles', ['title' => 'Uppercase']);
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user