mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-15 18:14:09 -08:00
0a7e053985
Signed-off-by: snipe <snipe@snipe.net>
24 lines
487 B
PHP
24 lines
487 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Department\Api;
|
|
|
|
use App\Models\AssetModel;
|
|
use App\Models\Department;
|
|
use App\Models\Category;
|
|
use App\Models\User;
|
|
use Illuminate\Testing\Fluent\AssertableJson;
|
|
use Tests\TestCase;
|
|
|
|
class CreateDepartmentsTest extends TestCase
|
|
{
|
|
|
|
|
|
public function testRequiresPermissionToCreateDepartment()
|
|
{
|
|
$this->actingAsForApi(User::factory()->create())
|
|
->postJson(route('api.departments.store'))
|
|
->assertForbidden();
|
|
}
|
|
|
|
}
|