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::new()
->count(5)
->with('Authors[3].Address.City.Country')
->saveMany();Five articles, each with three authors, each with an address, city and country, persisted in one expression.
This is a maintained fork of vierge-noire/cakephp-fixture-factories. The main breaking change is the generator abstraction, see the short migration guide.