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