Fixture strategy that wraps fixtures in a transaction that is rolled back after each test.
Any test that calls Connection::rollback(true) will break this strategy.
Initialize strategy.
Called before each test run in each TestCase.
Called after each test run in each TestCase.
__construct()
Initialize strategy.
setupTest(array<string> $fixtureNames): void
Called before each test run in each TestCase.
array<string> $fixtureNames voidteardownTest(): void
Called after each test run in each TestCase.
voidarrayCake\Datasource\FixtureInterface>Cake\TestSuite\Fixture\FixtureHelper
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.TestSuite.Fixture.TransactionStrategy.html