Symfony gitlab ci with behat, how manage functionnal tests for two json api connected not in the same repository?

Can you help me pelase?
My question is just, i have project with 2 repositories json api, and for test json api1 use json api2 in other repository is better to mock api2 with fake json and test in each push to gitlab or just wait api2 deployed and test api1?