Releases: vierge-noire/cakephp-fixture-factories
v1.4 Release
- New
->setField(string $field, $value)
method to easily populate one single field, instead of using->pachData([])
and typing an array. - Fixture Scenarios have been enhanced. You may now pass arguments to them, and define return parameters.
- New ::get(), ::find() and ::count() will make it easier to query your test DB in the assert part of your test.
- The ->with() method now accepts arrays of factories as parameter, to keep your code compacter.
- Method annotations were added to the baked factories
- The fixture_factories_persist command enables you to insert test fixtures on the command line.
Faker upgrade to ^1.15
- Avoid using deprecated accessor (
uuid
as prop)
Thanks to @o0h !
Faker upgrade to ^1.15
- Avoid using deprecated accessor (
uuid
as prop)
Thanks to @o0h !
v2.3 Release
- Depend on the v2.2 of the test suite light
- Factory aware trait
- Cleanup the main directory
- Test fixture Scenarios
- Find and count static methods
- Create fixtures on the command line
- Bug fixes
v1.3 Release
- Depend on the v1.2 of the test suite light
- Factory aware trait
- Cleanup the main directory
- Test fixture Scenarios
- Find and count static methods
- Create fixtures on the command line
- Bug fixes
Apply app's locale to faker if supported
Merge pull request #73 from vierge-noire/next Apply app's locale to faker
Apply app's locale to faker if supported
Merge pull request #74 from vierge-noire/cake3_next Apply app's locale to faker
Postgres update
A big thanks to @jsm222 who improved the management of the factories with Postgres!
Postgres update
Merge pull request #67 from vierge-noire/cake3_next Postgres update merged on cake_3
2021 latest features
The new year brings new features to the CakePHP fixture factories!
-
You now have the possibility to mark properties as unique. Whenever a unique property is populated by the developer (not by Faker), the package will check that this property is found in the test DB. If so, the package will merge the provided data with the existing entity. This applies only to associations and only when the entities get persisted. Primary keys are considered as unique per se, you do not have to define them as unique.
-
The factories now accept entities and arrays of entities as parameters. You can simply easily inject an existing set of entities in your factory.
-
Abstract tables are now excluded from the tables proposed to be baked by the bake command.
-
Hidden properties were not set in associations. This is now fixed.
-
Faker was updated to the newly created active repository.
-
Tests now cover PHP 7.2 to PHP 8.0.
-
The CakePHP 3 branch does not support PHP 7.0 anymore.