mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 03:02:15 +01:00
Add roles for project members; Restrict access to sensitive project values
This commit is contained in:
@@ -44,7 +44,7 @@ class ClientModelTest extends ModelTestAbstract
|
||||
// Assert
|
||||
$this->assertNotNull($projectsRel);
|
||||
$this->assertCount(4, $projectsRel);
|
||||
$this->assertTrue($projectsRel->first()->is($projects->first()));
|
||||
$this->assertNotEquals($projectsOtherClient->pluck('id'), $projectsRel->pluck('id'));
|
||||
}
|
||||
|
||||
public function test_accessor_is_archived_is_true_if_archived_at_is_not_null(): void
|
||||
|
||||
@@ -75,7 +75,7 @@ class ProjectModelTest extends ModelTestAbstract
|
||||
// Assert
|
||||
$this->assertNotNull($tasksRel);
|
||||
$this->assertCount(3, $tasksRel);
|
||||
$this->assertTrue($tasksRel->first()->is($tasks->first()));
|
||||
$this->assertEqualsIdsOfEloquentCollection($tasks->pluck('id')->toArray(), $tasksRel);
|
||||
}
|
||||
|
||||
public function test_it_has_many_members(): void
|
||||
@@ -91,7 +91,7 @@ class ProjectModelTest extends ModelTestAbstract
|
||||
// Assert
|
||||
$this->assertNotNull($membersRel);
|
||||
$this->assertCount(3, $membersRel);
|
||||
$this->assertTrue($membersRel->first()->is($members->first()));
|
||||
$this->assertEqualsIdsOfEloquentCollection($members->pluck('id')->toArray(), $membersRel);
|
||||
}
|
||||
|
||||
public function test_scope_visible_by_user_filters_so_that_only_public_projects_or_projects_where_the_user_is_member_are_shown(): void
|
||||
|
||||
Reference in New Issue
Block a user