At the moment I'm just doing this to check if storage is empty before post request, and not empty after.
public function testUploadAvatarMethodStoresImageCorrectlyAndUpdatesDb()
{
Storage::fake('local');
// Assert storage is empty.
$this->assertEquals([], Storage::allFiles());
$response = $this->actingAs($this->user)->json('POST', 'profile/avatar', [
'avatar' => UploadedFile::fake()->image('avatar.jpg')
])->assertStatus(200);
// Assert the file was stored...
$this->assertNotEquals([], Storage::allFiles());
}
Don't like it tho.