Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vierge-noire/cakephp-fixture-factories
CakePHP Fixture Factories
https://github.com/vierge-noire/cakephp-fixture-factories
cakephp fixture-factories test-fixtures
Last synced: 3 months ago
JSON representation
CakePHP Fixture Factories
- Host: GitHub
- URL: https://github.com/vierge-noire/cakephp-fixture-factories
- Owner: vierge-noire
- License: mit
- Created: 2020-04-18T15:06:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-09T09:11:22.000Z (9 months ago)
- Last Synced: 2024-07-18T00:19:08.165Z (4 months ago)
- Topics: cakephp, fixture-factories, test-fixtures
- Language: PHP
- Homepage: https://vierge-noire.github.io/
- Size: 1.15 MB
- Stars: 82
- Watchers: 6
- Forks: 21
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-cakephp - CakephpFixtureFactories plugin - Create your fixtures dynamically on a test basis, accelerate the writing and maintenance of your tests. (Testing)
- awesome-php-cn - CakePHP Fixture Factories - 立即编写测试fixture,框架不可知. (目录 / 测试 Testing)
README
CakePHP Fixture Factories
Write and run your tests faster. On any PHP application.---
```php
ArticleFactory::make(5)->with('Authors[3].Address.City.Country')->persist();
```---
## Installation
CakePHP 5 and non-CakePHP applications
```
composer require --dev vierge-noire/cakephp-fixture-factories "^3.0"
```CakePHP 4
```
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](docs/setup.md)
* ### [Fixture Factories](docs/factories.md)
* ### [Test Fixtures](docs/examples.md)
* ### [Associations](docs/associations.md)
* ### [Associations for non-CakePHP apps](docs/no_cake_associations.md)
* ### [Scenarios](docs/scenarios.md)
* ### [Queries](docs/queries.md)
* ### [Bake command](docs/bake.md)
* ### [Persist command](docs/commands.md)---
## Resources
[CakeFest 2021](https://www.youtube.com/watch?v=1WrWH2F_hWE) -
[IPC-Berlin 2020](https://www.youtube.com/watch?v=yJ6EqAE2NEs) -
[CakeFest 2020](https://www.youtube.com/watch?v=PNA1Ck2-nVc&t=30s)## Contribute
The development branch is named `next` (CakePHP 4.x based). Send us your pull requests!
## Support
Contact us at [email protected] for professional assistance.You like our work? [![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/L3L52P9JA)
## Authors
Juan Pablo Ramirez and Nicolas Masson## License
The CakePHPFixtureFactories plugin is offered under an [MIT license](https://opensource.org/licenses/mit-license.php).
Copyright 2023 Juan Pablo Ramirez and Nicolas Masson
Licensed under The MIT License Redistributions of files must retain the above copyright notice.