mirror of
https://github.com/phpmon/website
synced 2025-08-06 22:30:09 +02:00
Set up redirects
This commit is contained in:
20
tests/Feature/RedirectReachabilityTest.php
Normal file
20
tests/Feature/RedirectReachabilityTest.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user