Visible in Viewport/Invisible in Render question

Scenario: I have a cube, and inside that cube is a light source. I have the environment disabled, so the only light being projected is the one from inside the cube. If I toggle the “invisible in render” option under properties, will the light source travel through the cube as it if wasn’t there or will it bounce off?
Comments
Anything that has Visible in render turned off simply isn't sent to the renderer, as far as rendering goes it doesn't exist at all.