unch-cms/tests/Feature/UserTest.php

34 lines
700 B
PHP
Raw Normal View History

2022-09-02 11:25:50 +07:00
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;
class UserTest extends TestCase
{
/**
* A basic feature test example.
*
* @return void
*/
public function test_example()
{
// $response = $this->get('/');
$response = $this->get('/');
$response->ddHeaders();
$response->ddSession();
$response->dd();
$response->assertStatus(200);
}
public function test_interacting_with_the_session()
{
$response = $this->withSession(['banned' => false])->get('/');
$response->assertStatus(200);
}
}