Upload beautify
This commit is contained in:
15
tests/Feature/AvatarUploadTest.php
Normal file
15
tests/Feature/AvatarUploadTest.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AvatarUploadTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
public function test_upload_requires_authentication()
|
||||
{
|
||||
$response = $this->postJson(route('avatar.upload'));
|
||||
$response->assertStatus(401);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user