Renamed jetstream team to organization

This commit is contained in:
Constantin Graf
2024-01-21 19:52:19 +01:00
parent 6377df1f44
commit 0a8d958ccc
63 changed files with 461 additions and 329 deletions

View File

@@ -14,13 +14,13 @@ class UpdateTeamNameTest extends TestCase
public function test_team_names_can_be_updated(): void
{
$this->actingAs($user = User::factory()->withPersonalTeam()->create());
$this->actingAs($user = User::factory()->withPersonalOrganization()->create());
$response = $this->put('/teams/'.$user->currentTeam->id, [
'name' => 'Test Team',
'name' => 'Test Organization',
]);
$this->assertCount(1, $user->fresh()->ownedTeams);
$this->assertEquals('Test Team', $user->currentTeam->fresh()->name);
$this->assertEquals('Test Organization', $user->currentTeam->fresh()->name);
}
}