Skip to content

Releases: vierge-noire/cakephp-fixture-factories

v1.4 Release

08 Sep 12:18
91a4c94
Compare
Choose a tag to compare
  • 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

08 Jul 14:38
01337dd
Compare
Choose a tag to compare
  • Avoid using deprecated accessor (uuid as prop)

Thanks to @o0h !

Faker upgrade to ^1.15

08 Jul 14:38
1368929
Compare
Choose a tag to compare
  • Avoid using deprecated accessor (uuid as prop)

Thanks to @o0h !

v2.3 Release

09 Jun 20:41
a87901c
Compare
Choose a tag to compare
  • 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

09 Jun 20:43
2c1c80f
Compare
Choose a tag to compare
  • 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

25 Apr 03:10
43a3e0b
Compare
Choose a tag to compare
Merge pull request #73 from vierge-noire/next

Apply app's locale to faker

Apply app's locale to faker if supported

25 Apr 03:10
f8b4bf7
Compare
Choose a tag to compare
Merge pull request #74 from vierge-noire/cake3_next

Apply app's locale to faker

Postgres update

15 Apr 10:20
aff688a
Compare
Choose a tag to compare

A big thanks to @jsm222 who improved the management of the factories with Postgres!

Postgres update

15 Apr 10:23
f841515
Compare
Choose a tag to compare
Merge pull request #67 from vierge-noire/cake3_next

Postgres update merged on cake_3

2021 latest features

09 Feb 17:22
160eb8b
Compare
Choose a tag to compare

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.