Integrating Codeception with a Laravel 4.* application is not as straight forward as you might hope, especially if you need to mock API calls. Let's take a look at an approach I used recently that solved this problem.
Codeception Laravel Testing
To use Laravel Passport effectively you need to ensure it is properly configured in your application. Ensuring that this configration also works in a test enviroment can be tricky, depending on your situation. Let's take a look at one possible solution.