refact App\User to App\Models\User
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\Memo;
|
||||
use App\User;
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\WithFaker;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
@@ -28,7 +28,7 @@ class MemosTest extends TestCase
|
||||
{
|
||||
$this->withoutExceptionHandling();
|
||||
|
||||
$this->actingAs($user = factory(\App\User::class)->create(), 'api');
|
||||
$this->actingAs($user = factory(\App\Models\User::class)->create(), 'api');
|
||||
|
||||
$response = $this->post('/api/memos', $this->data());
|
||||
|
||||
@@ -52,7 +52,7 @@ class MemosTest extends TestCase
|
||||
/** @test */
|
||||
public function memo_name_are_required()
|
||||
{
|
||||
$this->actingAs($user = factory(\App\User::class)->create(), 'api');
|
||||
$this->actingAs($user = factory(\App\Models\User::class)->create(), 'api');
|
||||
$response = $this->post('/api/memos', array_merge($this->data(), ['name' => '']));
|
||||
|
||||
$response->assertSessionHasErrors('name');
|
||||
@@ -62,7 +62,7 @@ class MemosTest extends TestCase
|
||||
/** @test */
|
||||
public function memo_are_required()
|
||||
{
|
||||
$this->actingAs($user = factory(\App\User::class)->create(), 'api');
|
||||
$this->actingAs($user = factory(\App\Models\User::class)->create(), 'api');
|
||||
$response = $this->post('/api/memos', array_merge($this->data(), ['memo' => '']));
|
||||
|
||||
$response->assertSessionHasErrors('memo');
|
||||
|
||||
Reference in New Issue
Block a user