fixed test scope
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user