Fix Task 9 - your own validation rule

This commit is contained in:
thinkverse
2021-12-01 15:14:00 +01:00
parent ecc70f4d9f
commit 721762f0ba
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -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);
}
}