mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -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