feat: overhaul project workspace navigation
This commit is contained in:
@@ -37,7 +37,7 @@ class ProjectBoardControllerTest extends TestCase
|
||||
'name' => 'Doing',
|
||||
'position' => 2,
|
||||
]);
|
||||
$this->createColumnStatus($todoColumn);
|
||||
$todoStatus = $this->createColumnStatus($todoColumn);
|
||||
$doingStatus = $this->createColumnStatus($doingColumn);
|
||||
$backlogStatus = $this->backlogStatus($project);
|
||||
|
||||
@@ -72,6 +72,7 @@ class ProjectBoardControllerTest extends TestCase
|
||||
]);
|
||||
|
||||
$this->syncProjectPermissions($project, $user, ['view']);
|
||||
$this->allowMove($doingStatus, $todoStatus);
|
||||
|
||||
$this->actingAs($user)
|
||||
->get(route('projects.board.index', $project))
|
||||
@@ -88,8 +89,11 @@ class ProjectBoardControllerTest extends TestCase
|
||||
->where('boardColumns.1.tickets.0.assignee.id', $assignee->id)
|
||||
->where('boardColumns.1.tickets.0.assignee.name', $assignee->name)
|
||||
->where('boardColumns.1.tickets.0.assignee.avatar', $assignee->avatar)
|
||||
->where('boardColumns.1.tickets.0.ticket_status.allowed_target_statuses.0.id', $todoStatus->id)
|
||||
->where('boardColumns.1.tickets.0.ticket_status.allowed_target_statuses.0.board_column.id', $todoColumn->id)
|
||||
->where('canCreateTickets', false)
|
||||
->where('canEditTickets', false),
|
||||
->where('canEditTickets', false)
|
||||
->where('canManageProject', false),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user