We assembled a testbed to study coupling of starlight through atmospheric turbulence via astronomical telescopes into astrophotonic devices. The setup allows for varying the turbulence strength and investigating the effects of different levels of adaptive optics correction on the efficiency of integrated optics. In addition to recording optical powers and wavefront errors, focal plane images are captured from which spots sizes and Strehl ratios are also measured. Novel astrophotonic components proposed as alternatives to conventional optical instruments can therefore be qualified in terms of coupling efficiency and throughput on the testbed before they are tested on the sky.