prepaeres to some code for the tests
This commit is contained in:
@ -2,21 +2,21 @@
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\Auth\User;
|
||||
use Tests\TestCase;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
/**
|
||||
/**
|
||||
* A basic test example.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testBasicTest()
|
||||
{
|
||||
$response = $this->get('/');
|
||||
$response = $this
|
||||
->actingAs(User::first())
|
||||
->get('/');
|
||||
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
|
Reference in New Issue
Block a user