Improve scenario descriptions

This commit is contained in:
Marcus Moore 2024-10-16 11:52:24 -07:00
parent 2f72c66614
commit 604a964462
No known key found for this signature in database

View file

@ -27,7 +27,7 @@ class StoreAssetTest extends TestCase
public static function userProvider(): Generator
{
yield 'User in a company' => [
yield "User in a company should result in user's company_id being used" => [
function () {
$jedi = Company::factory()->create();
$sith = Company::factory()->create();
@ -43,7 +43,7 @@ class StoreAssetTest extends TestCase
}
];
yield 'User without a company' => [
yield "User without a company should result in asset's company_id being null" => [
function () {
$userInNoCompany = User::factory()->createAssets()->create(['company_id' => null]);
@ -57,7 +57,7 @@ class StoreAssetTest extends TestCase
}
];
yield 'Super-User assigning across companies' => [
yield "Super-User assigning across companies should result in asset's company_id being set to what was provided" => [
function () {
$superUser = User::factory()->superuser()->create();
$company = Company::factory()->create();