Add additional case

This commit is contained in:
Marcus Moore 2024-10-16 11:30:06 -07:00
parent cba1a56040
commit 2f72c66614
No known key found for this signature in database

View file

@ -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);
},
];
}
];
} }
/** /**