mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
Renamed jetstream team to organization
This commit is contained in:
@@ -14,7 +14,7 @@ class LeaveTeamTest extends TestCase
|
||||
|
||||
public function test_users_can_leave_teams(): void
|
||||
{
|
||||
$user = User::factory()->withPersonalTeam()->create();
|
||||
$user = User::factory()->withPersonalOrganization()->create();
|
||||
|
||||
$user->currentTeam->users()->attach(
|
||||
$otherUser = User::factory()->create(), ['role' => 'admin']
|
||||
@@ -29,7 +29,7 @@ class LeaveTeamTest extends TestCase
|
||||
|
||||
public function test_team_owners_cant_leave_their_own_team(): void
|
||||
{
|
||||
$this->actingAs($user = User::factory()->withPersonalTeam()->create());
|
||||
$this->actingAs($user = User::factory()->withPersonalOrganization()->create());
|
||||
|
||||
$response = $this->delete('/teams/'.$user->currentTeam->id.'/members/'.$user->id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user