fixed tests
linter / quality (push) Successful in 1m17s
tests / ci (8.4) (push) Failing after 1m33s

This commit is contained in:
2026-04-24 15:17:35 +02:00
parent d26371cb40
commit 6f573c7984
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -172,7 +172,7 @@ class SettingsApiTest extends TestCase
'title' => 'Scoped users ticket',
]);
$this->actingAs($user)
$this->withApplicationKey($user)
->getJson(route('api.projects.backlog', $project))
->assertOk()
->assertJsonPath('data.users.0.name', $user->name)
@@ -180,7 +180,7 @@ class SettingsApiTest extends TestCase
->assertJsonPath('data.users.2.name', 'Visible User')
->assertJsonCount(3, 'data.users');
$this->actingAs($user)
$this->withApplicationKey($user)
->getJson(route('api.projects.tickets.show', [$project, $ticket]))
->assertOk()
->assertJsonPath('data.users.0.name', $user->name)
+2 -2
View File
@@ -111,7 +111,7 @@ class TicketApiTest extends TestCase
$this->syncProjectPermissions($project, $writer, ['write', 'view']);
$this->actingAs($writer)
$this->withApplicationKey($writer)
->patchJson(route('api.projects.tickets.update', [$project, $ticket]), [
'acceptance_criteria' => $ticket->acceptance_criteria,
'blocked_comment' => $ticket->blocked_comment,
@@ -136,7 +136,7 @@ class TicketApiTest extends TestCase
$this->syncProjectPermissions($project, $projectViewer, ['view']);
$response = $this->actingAs($user)
$response = $this->withApplicationKey($user)
->getJson(route('api.projects.ticket-options', [
'project' => $project,
'source' => 'backlog',