Faster Tests, Less Boilerplate
Skip $fixtures arrays. The Factory Transaction Strategy wraps each test, rolls back automatically, and resets generator state.
Build expressive test fixtures with associations, scenarios, and pluggable data generators — for CakePHP and beyond.
ArticleFactory::make(5)
->with('Authors[3].Address.City.Country')
->persistEntities();Five articles, each with three authors, each with an address, city and country — persisted in one expression.
composer require --dev dereuromark/cakephp-fixture-factoriesThen load the plugin and configure the fixture strategy. See Setup for full instructions.
This is a maintained fork of vierge-noire/cakephp-fixture-factories. The main breaking change is the generator abstraction — see the short migration guide.