2FAuth/tests/Feature/RouteTest.php
2022-03-31 11:24:01 +02:00

35 lines
602 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);
}
}