added it_get_participant_uploads

This commit is contained in:
Peter Papp
2021-03-01 17:03:20 +01:00
parent 2007279a69
commit 1784ff84c8
2 changed files with 21 additions and 2 deletions

View File

@@ -297,9 +297,28 @@ class BrowseTest extends TestCase
]);
}
/**
* @test
*/
public function it_get_participant_uploads()
{
$user = User::factory(User::class)
->create();
Sanctum::actingAs($user);
$file = File::factory(File::class)
->create([
"user_scope" => "editor",
"type" => "file",
'user_id' => $user->id,
]);
$this->getJson("/api/browse/participants")
->assertStatus(200)
->assertJsonFragment([
'id' => $file->id
]);
}
/**