diff --git a/tests/Feature/Controllers/UserPreviewControllerTest.php b/tests/Feature/Controllers/UserPreviewControllerTest.php index b11bc9052..781b41abf 100644 --- a/tests/Feature/Controllers/UserPreviewControllerTest.php +++ b/tests/Feature/Controllers/UserPreviewControllerTest.php @@ -175,7 +175,7 @@ }); it('includes the shared local time in the user preview', function (): void { - User::factory()->create(['username' => 'octocat', 'timezone' => 'Europe/Berlin', 'show_local_time' => true]); + User::factory()->create(['handle' => 'octocat', 'timezone' => 'Europe/Berlin', 'show_local_time' => true]); $this->actingAs(User::factory()->create()) ->getJson('/@octocat/preview') diff --git a/tests/Feature/ScheduledCommitsTest.php b/tests/Feature/ScheduledCommitsTest.php index 03f4c3dfc..43e327136 100644 --- a/tests/Feature/ScheduledCommitsTest.php +++ b/tests/Feature/ScheduledCommitsTest.php @@ -528,7 +528,7 @@ $this->actingAs($canceled->user)->post(route('scheduled-commit-submission.store', $canceled))->assertRedirect() ->assertInertiaFlash('toast.type', 'info')->assertInertiaFlashMissing('submitted'); $this->post(route('scheduled-commit-submission.store', $other))->assertForbidden(); - $this->actingAs(User::factory()->create(['username' => 'admin']))->post(route('scheduled-commit-submission.store', $other))->assertForbidden(); + $this->actingAs(User::factory()->create(['handle' => 'admin']))->post(route('scheduled-commit-submission.store', $other))->assertForbidden(); expect(Commit::query()->count())->toBe(0) ->and($other->fresh()->submitted_at)->toBeNull();