Added trial and blocking to billing contract, fixed bug in running time tracker command

This commit is contained in:
Constantin Graf
2024-07-29 18:04:45 +02:00
committed by Constantin Graf
parent 7c593f8f87
commit 5b7df869ad
33 changed files with 629 additions and 187 deletions

View File

@@ -35,10 +35,14 @@ abstract class TestCaseWithDatabase extends TestCase
$ownerMember = Member::factory()->forUser($owner)->forOrganization($organization)->create([
'role' => Role::Owner->value,
]);
$owner->currentOrganization()->associate($organization);
$owner->save();
}
$member = Member::factory()->forUser($user)->forOrganization($organization)->create([
'role' => $roleName,
]);
$user->currentOrganization()->associate($organization);
$user->save();
return (object) [
'user' => $user,