import app Models User change
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\Bookmark;
|
||||
use App\User;
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\WithFaker;
|
||||
use Tests\TestCase;
|
||||
@@ -17,7 +17,7 @@ class BookmarkTest 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/bookmarks', $this->data());
|
||||
|
||||
@@ -49,7 +49,7 @@ class BookmarkTest extends TestCase
|
||||
/** @test */
|
||||
public function bookmark_url_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/bookmarks', array_merge($this->data(), ['url' => '']));
|
||||
|
||||
$response->assertSessionHasErrors('url');
|
||||
|
||||
Reference in New Issue
Block a user