mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -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()
|
public function testPermissionRequiredToStoreAssetModel()
|
||||||
{
|
{
|
||||||
$this->actingAs(User::factory()->create())
|
$this->actingAs(User::factory()->create())
|
||||||
->post(route('models.store'), [
|
->put(route('models.update', ['model' => AssetModel::factory()->create()]), [
|
||||||
'name' => 'Test Model',
|
'name' => 'Changed Name',
|
||||||
'category_id' => Category::factory()->create()->id
|
'category_id' => Category::factory()->create()->id,
|
||||||
])
|
])
|
||||||
->assertStatus(403)
|
|
||||||
->assertForbidden();
|
->assertForbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue