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