Ooof, got the dependencies all up to date as well
Lots of tests needed fixing, but it seemed to be a whitespace parsing
error in the view files 🤔
This commit is contained in:
parent
ec01b3c6a2
commit
b2b6693aec
61 changed files with 2057 additions and 1441 deletions
|
@ -15,19 +15,19 @@ class ArticlesTest extends TestCase
|
|||
|
||||
public function test_single_article()
|
||||
{
|
||||
$response = $this->get('/blog/' . date('Y') . '/' . date('m') . '/my-new-blog');
|
||||
$response = $this->get('/blog/' . date('Y') . '/' . date('m') . '/some-code-i-did');
|
||||
$response->assertViewIs('articles.show');
|
||||
}
|
||||
|
||||
public function test_wrong_date_redirects()
|
||||
{
|
||||
$response = $this->get('/blog/1900/01/my-new-blog');
|
||||
$response->assertRedirect('/blog/' . date('Y') . '/' . date('m') . '/my-new-blog');
|
||||
$response = $this->get('/blog/1900/01/some-code-i-did');
|
||||
$response->assertRedirect('/blog/' . date('Y') . '/' . date('m') . '/some-code-i-did');
|
||||
}
|
||||
|
||||
public function test_redirect_for_id()
|
||||
{
|
||||
$response = $this->get('/blog/s/1');
|
||||
$response->assertRedirect('/blog/' . date('Y') . '/' . date('m') . '/my-new-blog');
|
||||
$response = $this->get('/blog/s/2');
|
||||
$response->assertRedirect('/blog/' . date('Y') . '/' . date('m') . '/some-code-i-did');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue