andReturn($path); Storage::shouldReceive('delete')->andReturnTrue(); (new ChunkFile( Str::uuid(), $path, FileFormatEnum::JSON ))->handle(); Bus::assertDispatched(StoreChunk::class, 1); } }