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