cakephp-fixture-factories
cakephp-fixture-factories copied to clipboard
CakePHP Fixture Factories
CakePHP Fixture Factories
Write and run your tests faster. On any PHP application.
ArticleFactory::make(5)->with('Authors[3].Address.City.Country')->persist();
Installation
CakePHP 4 and non-CakePHP applications
composer require --dev vierge-noire/cakephp-fixture-factories "^2.5"
CakePHP 3
composer require --dev vierge-noire/cakephp-fixture-factories "^1.0"
PHP 7.0 is supported up to v1.1.* only.
Content
-
Setup - DB Cleaning
-
Fixture Factories
-
Test Fixtures
-
Associations
-
Associations for non-CakePHP apps
-
Scenarios
-
Queries
-
Bake command
-
Persist command
Resources
CakeFest 2021 - IPC-Berlin 2020 - CakeFest 2020
Contribute
The development branch is named next
(CakePHP 4.x based). Feel free to send us your pull requests!
Support
Contact us at [email protected] for professional assistance.
Authors
Juan Pablo Ramirez and Nicolas Masson
License
The CakePHPFixtureFactories plugin is offered under an MIT license.
Copyright 2021 Juan Pablo Ramirez and Nicolas Masson
Licensed under The MIT License Redistributions of files must retain the above copyright notice.