Writing Tests
I recommend writing integration tests for the following scenarios for each job:
- Add two records, sync all
- Add two records, sync one record only
- Update two records, sync all
- Update two records, sync one record only
- Delete two records, sync all
- Delete two records, sync one record only
If you are using Eloquent, the Laravel Multiple Databases package will probably be needed.
For testing external APIs, see Laravel's HTTP::fake() documentation.