HomeDevCentral

Support blackhole database engine for mocks

Description

Support blackhole database engine for mocks

Summary:
It can be convenient in tests to replace a full fledged instance
of the database engine by a mock doing nothing. That's the purpose
of this change.

This blackhole engine doesn't really use any of the parameters passed
to the methods, and that's expected behavior for a blackhole. As such,
phpcs is configured to ignore unused parameters.

Test Plan: used in Zed to test GeoLocation class

Reviewers: dereckson

Differential Revision: https://devcentral.nasqueron.org/D3198

Details

Provenance
derecksonAuthored on Jun 14 2023, 21:47
derecksonPushed on Jun 14 2023, 21:54
Differential Revision
D3198: Support blackhole database engine for mocks
Parents
rKERUALDb44478a93ce3: Allow to get first item of a collection
Branches
Unknown
Tags
Unknown
References
tag: database/0.2.0