mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 11:12:16 +01:00
Renamed jetstream team to organization
This commit is contained in:
@@ -4,7 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\Team;
|
||||
use App\Models\Organization;
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
@@ -15,9 +15,9 @@ class DeleteTeamTest extends TestCase
|
||||
|
||||
public function test_teams_can_be_deleted(): void
|
||||
{
|
||||
$this->actingAs($user = User::factory()->withPersonalTeam()->create());
|
||||
$this->actingAs($user = User::factory()->withPersonalOrganization()->create());
|
||||
|
||||
$user->ownedTeams()->save($team = Team::factory()->make([
|
||||
$user->ownedTeams()->save($team = Organization::factory()->make([
|
||||
'personal_team' => false,
|
||||
]));
|
||||
|
||||
@@ -33,7 +33,7 @@ class DeleteTeamTest extends TestCase
|
||||
|
||||
public function test_personal_teams_cant_be_deleted(): void
|
||||
{
|
||||
$this->actingAs($user = User::factory()->withPersonalTeam()->create());
|
||||
$this->actingAs($user = User::factory()->withPersonalOrganization()->create());
|
||||
|
||||
$response = $this->delete('/teams/'.$user->currentTeam->id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user