mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-12 18:21:13 +01:00
35 lines
575 B
PHP
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);
|
|
}
|
|
|
|
} |