2FAuth/tests/Unit/RouteTest.php

35 lines
576 B
PHP
Raw Normal View History

2020-03-02 17:11:17 +01:00
<?php
namespace Tests\Unit;
use Tests\TestCase;
class RouteTest extends TestCase
{
/**
* test return main web view
*
* @test
*/
public function testLandingViewIsReturned()
{
2020-10-11 20:40:28 +02:00
$response = $this->get(route('landing', ['any' => '/']));
2020-03-02 17:11:17 +01:00
$response->assertSuccessful()
->assertViewIs('landing');
2020-03-02 17:11:17 +01:00
}
2020-03-08 20:16:56 +01:00
/**
* test return main web view
*
* @test
*/
public function testExceptionHandlerWithWebRoute()
{
$response = $this->post('/');
$response->assertStatus(405);
}
2020-03-02 17:11:17 +01:00
}