[13.x] Convert test suite from Mockery to Double

Merged
JA
11d ago
+8581-10660

This pull request converts the test suite from Mockery to Double.

No framework code changed. The facade testing layer still uses Mockery and the mockery/mockery dependency remains. As such, I am targeting 13.x.

During the conversion a few more test cases were converted to an "integration style". This not only overcame Double's (by design) boundaries, but strengthened the tests. In addition, a few "real objects" were used instead of test doubles, and some dead code was removed.

Note: Since Mockery is still available, open and future PRs my continue to use Mockery when contributing to 13.x. If merged, then a final conversion will be done on 14.x to fully remove Mockery.