2FAuth/tests/Feature/RouteTest.php

35 lines
602 B
PHP
Raw Normal View History

2020-03-02 17:11:17 +01:00
<?php
2021-11-22 01:09:54 +01:00
namespace Tests\Feature;
2020-03-02 17:11:17 +01:00
2021-11-22 01:09:54 +01:00
use Tests\FeatureTestCase;
2020-03-02 17:11:17 +01:00
2021-11-22 01:09:54 +01:00
class RouteTest extends FeatureTestCase
2020-03-02 17:11:17 +01:00
{
/**
* test return main web view
*
* @test
*/
2021-11-22 01:09:54 +01:00
public function test_landing_view_is_returned()
2020-03-02 17:11:17 +01:00
{
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
*/
2021-11-22 01:09:54 +01:00
public function test_exception_handler_with_web_route()
2020-03-08 20:16:56 +01:00
{
$response = $this->post('/');
$response->assertStatus(405);
}
2020-03-02 17:11:17 +01:00
}