This is how Apple water tests its iPhones for IP rating and durability
Multiple videos show how Apple water tests its iPhone models to achieve the desired durability and IP Rating. It uses machines to throw high-pressure water and simulate rain using a drip tray.
Source: neowin.net