fixed test scope

This commit is contained in:
2026-04-22 10:57:31 +02:00
parent c9a3a7f58d
commit 3f4c8f49d9
+8 -6
View File
@@ -175,16 +175,18 @@ class SettingsApiTest extends TestCase
$this->actingAs($user) $this->actingAs($user)
->getJson(route('api.projects.backlog', $project)) ->getJson(route('api.projects.backlog', $project))
->assertOk() ->assertOk()
->assertJsonPath('data.users.0.name', 'Team Viewer') ->assertJsonPath('data.users.0.name', $user->name)
->assertJsonPath('data.users.1.name', 'Visible User') ->assertJsonPath('data.users.1.name', 'Team Viewer')
->assertJsonCount(2, 'data.users'); ->assertJsonPath('data.users.2.name', 'Visible User')
->assertJsonCount(3, 'data.users');
$this->actingAs($user) $this->actingAs($user)
->getJson(route('api.projects.tickets.show', [$project, $ticket])) ->getJson(route('api.projects.tickets.show', [$project, $ticket]))
->assertOk() ->assertOk()
->assertJsonPath('data.users.0.name', 'Team Viewer') ->assertJsonPath('data.users.0.name', $user->name)
->assertJsonPath('data.users.1.name', 'Visible User') ->assertJsonPath('data.users.1.name', 'Team Viewer')
->assertJsonCount(2, 'data.users'); ->assertJsonPath('data.users.2.name', 'Visible User')
->assertJsonCount(3, 'data.users');
} }
public function test_project_repositories_and_user_git_connections_are_available(): void public function test_project_repositories_and_user_git_connections_are_available(): void