mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Point test to correct endpoint
This commit is contained in:
parent
b59bf3e7dc
commit
bcace9d019
|
@ -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