Point test to correct endpoint

This commit is contained in:
Marcus Moore 2024-08-21 16:54:16 -07:00
parent 833bcb282f
commit 21d2217619
No known key found for this signature in database

View file

@ -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();
} }