mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Point test to correct endpoint
This commit is contained in:
parent
833bcb282f
commit
21d2217619
|
@ -14,11 +14,10 @@ class UpdateAssetModelsTest extends TestCase
|
|||
public function testPermissionRequiredToStoreAssetModel()
|
||||
{
|
||||
$this->actingAs(User::factory()->create())
|
||||
->post(route('models.store'), [
|
||||
'name' => 'Test Model',
|
||||
'category_id' => Category::factory()->create()->id
|
||||
->put(route('models.update', ['model' => AssetModel::factory()->create()]), [
|
||||
'name' => 'Changed Name',
|
||||
'category_id' => Category::factory()->create()->id,
|
||||
])
|
||||
->assertStatus(403)
|
||||
->assertForbidden();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue