vierge-noire / cakephp-fixture-factories

CakePHP Fixture Factories
https://vierge-noire.github.io/
MIT License
83 stars 21 forks source link

Added tinyinteger and smallinteger pk types #196

Closed MolbioUnige closed 1 year ago

MolbioUnige commented 1 year ago

I've added two more primary key types, tinyinteger and smallinteger.

I didn't add any tests as I don't see how they can be tested. The only useful test would be to see if the value doesn't exceed the type boundaries, but as the values are random...

It seems useless to test that they are integers, as, If the primary key is not of string or uuid type, whatever the type is, it will alway fallback on integer any way.