Skip to content

feat(testing): add expectation API to EntityFetcher mock results - #90

Open
tflori wants to merge 7 commits into
masterfrom
f/ef-expectations
Open

feat(testing): add expectation API to EntityFetcher mock results#90
tflori wants to merge 7 commits into
masterfrom
f/ef-expectations

Conversation

@tflori

@tflori tflori commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Allow defining call expectations on mock Result objects via expectOne/expectAll/expectCount/expectDelete/expectUpdate/expectInsert. Returns Mockery expectations for native ->once(), ->never(), ->times().

EntityFetcherMock now delegates one/all/count/delete/update/insert to the matched Result, which provides mock implementations without DB. getMatchedResult() added to ResultRepository and EntityManagerMock; getResults() marked deprecated.

Result methods tested directly (one, count, delete, update, insert) and via delegation through EntityFetcherMock with Mockery expectations.

tflori added 7 commits July 31, 2026 11:28
Allow defining call expectations on mock Result objects via
expectOne/expectAll/expectCount/expectDelete/expectUpdate/expectInsert.
Returns Mockery expectations for native ->once(), ->never(), ->times().

EntityFetcherMock now delegates one/all/count/delete/update/insert to
the matched Result, which provides mock implementations without DB.
getMatchedResult() added to ResultRepository and EntityManagerMock;
getResults() marked deprecated.

Result methods tested directly (one, count, delete, update, insert)
and via delegation through EntityFetcherMock with Mockery expectations.
…rix to 7.3-8.5

PHPStan is now a separate parallel job running on PHP 8.5, avoiding
PHP 8.3-specific false-positive reflection errors. The unit-tests matrix
now covers 7.3 through 8.5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant