Avoid future regression bug that might happen when Illuminate\Pagination\Factory method signature is changed, since mocking Illuminate\Pagination\Environment does reflect the relevant signature.

Signed-off-by: crynobone <crynobone@gmail.com>
Merge pull request #5351 from crynobone/patch/factory-mock

Avoid future regression bug that might happen when Illuminate\Pagination\Factory method signature is changed, since mocking Illuminate\Pagination\Environment does reflect the relevant signature.