prepaeres to some code for the tests

This commit is contained in:
Berkay Güre
2018-07-14 13:22:33 +03:00
parent 1745f0a41e
commit 12bdb951f9
23 changed files with 1559 additions and 163 deletions

View File

@ -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);
}