Set up redirects

This commit is contained in:
2022-09-05 19:54:06 +02:00
parent cfb14498d4
commit 792a4aee9b
4 changed files with 49 additions and 6 deletions

View File

@ -0,0 +1,20 @@
<?php
namespace Tests\Feature;
use Tests\TestCase;
class RedirectReachabilityTest extends TestCase
{
public function test_redirects_work()
{
$response = $this->get('/github');
$response->assertStatus(302);
$response->assertRedirect('https://github.com/nicoverbruggen/phpmon');
$this->get('/faq')->assertStatus(302);
$this->get('/releases')->assertStatus(302);
$this->get('/sponsor')->assertStatus(302);
$this->get('/sponsor/now')->assertStatus(302);
}
}