34 lines
700 B
PHP
34 lines
700 B
PHP
<?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);
|
|
}
|
|
}
|