Fixes Tests

This commit is contained in:
Refringe 2024-06-18 17:01:08 -04:00
parent 993b6fdf64
commit aec8a5241e
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k
5 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@ class ApiTokenPermissionsTest extends TestCase
$this->markTestSkipped('API support is not enabled.');
}
$this->actingAs($user = User::factory()->withPersonalTeam()->create());
$this->actingAs($user = User::factory()->create());
$token = $user->tokens()->create([
'name' => 'Test Token',

View File

@ -19,7 +19,7 @@ class CreateApiTokenTest extends TestCase
$this->markTestSkipped('API support is not enabled.');
}
$this->actingAs($user = User::factory()->withPersonalTeam()->create());
$this->actingAs($user = User::factory()->create());
Livewire::test(ApiTokenManager::class)
->set(['createApiTokenForm' => [

View File

@ -20,7 +20,7 @@ class DeleteApiTokenTest extends TestCase
$this->markTestSkipped('API support is not enabled.');
}
$this->actingAs($user = User::factory()->withPersonalTeam()->create());
$this->actingAs($user = User::factory()->create());
$token = $user->tokens()->create([
'name' => 'Test Token',

View File

@ -20,7 +20,7 @@ class EmailVerificationTest extends TestCase
$this->markTestSkipped('Email verification not enabled.');
}
$user = User::factory()->withPersonalTeam()->unverified()->create();
$user = User::factory()->unverified()->create();
$response = $this->actingAs($user)->get('/email/verify');

View File

@ -12,7 +12,7 @@ class PasswordConfirmationTest extends TestCase
public function test_confirm_password_screen_can_be_rendered(): void
{
$user = User::factory()->withPersonalTeam()->create();
$user = User::factory()->create();
$response = $this->actingAs($user)->get('/user/confirm-password');