2FAuth/tests/Unit/RouteTest.php
2020-03-08 20:16:56 +01:00

35 lines
575 B
PHP

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