The requirement of plants is any form of light, so it does not necessarily have to be only sunlight. Moreover, if the correct type of artificial light is used, photosynthesis can even occur at night with the lights with blue and red wavelengths.