/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/TestSuite/Fixture
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/TestSuite/Fixture/TruncateStrategy.php (1551B)
*/
protected $fixtures = [];
/**
* Initialize strategy.
*/
public function __construct()
{
$this->helper = new FixtureHelper();
}
/**
* @inheritDoc
*/
public function setupTest(array $fixtureNames): void
{
if (empty($fixtureNames)) {
return;
}
$this->fixtures = $this->helper->loadFixtures($fixtureNames);
$this->helper->insert($this->fixtures);
}
/**
* @inheritDoc
*/
public function teardownTest(): void
{
$this->helper->truncate($this->fixtures);
}
}