Class TruncateStrategy
Fixture strategy that truncates all fixture ables at the end of test.
Namespace: Cake\TestSuite\Fixture
Property Summary
Method Summary
-
__construct() public
Initialize strategy.
-
setupTest() public
Called before each test run in each TestCase.
-
teardownTest() public
Called after each test run in each TestCase.
Method Detail
__construct() public
__construct()
Initialize strategy.
setupTest() public
setupTest(array<string> $fixtureNames): void
Called before each test run in each TestCase.
Parameters
-
array<string>$fixtureNames
Returns
voidteardownTest() public
teardownTest(): void
Called after each test run in each TestCase.
Returns
voidProperty Detail
$fixtures protected
Type
arrayCake\Datasource\FixtureInterface>$helper protected
Type
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.TruncateStrategy.html