You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
FakeQueryModule answers the #[DbQuery] methods of the interfaces in a directory from JSON fixtures instead of SQL: {id}.json for a row (null for a nullable row, or no file), {id}.jsonl for a row list with one object per line; void methods are no-ops
Entities are hydrated by name: snake_case or camelCase keys map to properties or constructor parameters, and #[DbQuery(factory: ...)] factories receive the fixture fields in object order
Broken or mismatched fixtures throw: InvalidFakeDirException, FakeJsonNotFoundException, UnknownFakeJsonException, InvalidFakeJsonException (naming the file and JSONL line), MissingFakeFieldException, InvalidFactoryException
#[Pager] methods and PagesInterface / PostQueryInterface return types throw UnsupportedQueryException
When installed together with MediaQuerySqlModule, FakeQueryModule takes over #[DbQuery] methods in any install order, including override()