get and browse team folders shared with me

This commit is contained in:
Čarodej
2021-09-24 16:56:18 +02:00
parent 37cad85a86
commit 07b249346b
10 changed files with 450 additions and 59 deletions

View File

@@ -117,10 +117,9 @@ class ContentAccessTest extends TestCase
'name' => 'fake-thumbnail.jpg',
]);
Sanctum::actingAs($users[1]);
$this->get("thumbnail/$thumbnail->name")
->assertNotFound();
$this->actingAs($users[1])
->get("thumbnail/$thumbnail->name")
->assertForbidden();
}
/**
@@ -144,10 +143,9 @@ class ContentAccessTest extends TestCase
'name' => 'fake-file.pdf',
]);
Sanctum::actingAs($users[1]);
$this->get("file/$file->name")
->assertStatus(404);
$this->actingAs($users[1])
->get("file/$file->name")
->assertForbidden();
}
/**