mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
new test for not found assets
This commit is contained in:
parent
fdf0be09db
commit
c155e4a7c9
|
@ -20,6 +20,13 @@ class AssetUpdateTest extends TestCase
|
|||
{
|
||||
use InteractsWithSettings;
|
||||
|
||||
public function testThatANonExistentAssetIdReturnsError()
|
||||
{
|
||||
$this->actingAsForApi(User::factory()->editAssets()->createAssets()->create())
|
||||
->patchJson(route('api.assets.update', 123456789))
|
||||
->assertStatusMessageIs('error');
|
||||
}
|
||||
|
||||
public function testRequiresPermissionToUpdateAsset()
|
||||
{
|
||||
$asset = Asset::factory()->create();
|
||||
|
|
Loading…
Reference in a new issue