mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #8533] Add test coverage for passing optimistic lock version as string #11049
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/8533
State: closed
Merged: Yes
As suggested by @greg0ire I have updated the tests to cover the current behaviour of passing a string
versionargument for optimistic locking.Since #8527 was only-sort-of-a-bug and this is just a simple variation of how
->lockis already tested, I thought it made sense to modify the existing tests to cover this case rather than the overhead of a whole separate test case. Particularly since I guess this will probably change again in a future release, and the goal is just to avoid that happening accidentally in the meantime.If you'd prefer to have a standalone GH8527 ticket test instead I can happily do that, just let me know.