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