mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 19:52:15 +01:00
Renamed jetstream team to organization
This commit is contained in:
@@ -14,13 +14,13 @@ class CreateTeamTest extends TestCase
|
||||
|
||||
public function test_teams_can_be_created(): void
|
||||
{
|
||||
$this->actingAs($user = User::factory()->withPersonalTeam()->create());
|
||||
$this->actingAs($user = User::factory()->withPersonalOrganization()->create());
|
||||
|
||||
$response = $this->post('/teams', [
|
||||
'name' => 'Test Team',
|
||||
'name' => 'Test Organization',
|
||||
]);
|
||||
|
||||
$this->assertCount(2, $user->fresh()->ownedTeams);
|
||||
$this->assertEquals('Test Team', $user->fresh()->ownedTeams()->latest('id')->first()->name);
|
||||
$this->assertEquals('Test Organization', $user->fresh()->ownedTeams()->latest('id')->first()->name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user