Skip to content

[5.x] Ensure expectation count isnt negative if Version is not called#9863

Merged
jasonvarga merged 2 commits intostatamic:masterfrom
ryanmitchell:fix/assertation-count-in-addon-tests
Apr 11, 2024
Merged

[5.x] Ensure expectation count isnt negative if Version is not called#9863
jasonvarga merged 2 commits intostatamic:masterfrom
ryanmitchell:fix/assertation-count-in-addon-tests

Conversation

@ryanmitchell
Copy link
Copy Markdown
Contributor

Since eloquent driver was updated to use AddonTestCase its being showing warning about skipping tests, which I've worked out is due to a negative assertion count.

It seems to be due to it not triggering a call to version, so the simple fix is to allow this to be called zero or more time.

@jasonvarga jasonvarga changed the title [5.x] Ensure assertation count isnt negative if Version is not called [5.x] Ensure expectation count isnt negative if Version is not called Apr 11, 2024
@jasonvarga jasonvarga merged commit a268556 into statamic:master Apr 11, 2024
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.

3 participants