PHP Unit - Testing Database
Done:
- If the API request has been triggered by PHPUnit, load the phpunit database in favour of the live database.
Note:
- Implemented for PHPUnit testing in AFES (https://git.customd.com/afes/donation-portal/merge_requests/238)
Test:
- Log into the admin area and confirm it works as expected e.g. displaying users in the account area using the normal database