Message of the day:
Making TDD easy in SilverStripe
Discuss testing in SilverStripe
good chat 😄
Oh you already fixed it
I'll PR a fix for you 😉
You need to use
I probably should've looked at the test results first - that doesn't appear to be the case here
The reason being is that all tests are run in transactions with SapphireTest (for speed). You can disable this functionality for a whole test file by putting
protected $usesTransactions = false at the top of your test file.
Like, if you test that a failure rolls back properly (and maybe assert that something is logged) - but then you try to commit another transaction in the same test - you'll get an error
Are you testing functionality of rollbacks?
I am using 2-dev branch of the Postgres module (which should fix this issue) 😕