mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Add additional case
This commit is contained in:
parent
cba1a56040
commit
2f72c66614
|
@ -56,6 +56,21 @@ class StoreAssetTest extends TestCase
|
|||
];
|
||||
}
|
||||
];
|
||||
|
||||
yield 'Super-User assigning across companies' => [
|
||||
function () {
|
||||
$superUser = User::factory()->superuser()->create();
|
||||
$company = Company::factory()->create();
|
||||
|
||||
return [
|
||||
'actor' => $superUser,
|
||||
'company_attempting_to_associate' => $company,
|
||||
'assertions' => function ($asset) use ($company) {
|
||||
self::assertEquals($asset->company_id, $company->id);
|
||||
},
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue