2FAuth/tests/Feature/RouteTest.php
2022-11-25 15:20:36 +01:00

34 lines
601 B
PHP

<?php
namespace Tests\Feature;
use Tests\FeatureTestCase;
class RouteTest extends FeatureTestCase
{
/**
* test return main web view
*
* @test
*/
public function test_landing_view_is_returned()
{
$response = $this->get(route('landing', ['any' => '/']));
$response->assertSuccessful()
->assertViewIs('landing');
}
/**
* test return main web view
*
* @test
*/
public function test_exception_handler_with_web_route()
{
$response = $this->post('/');
$response->assertStatus(405);
}
}