Change fixtures - add createdAt different time for customers

This commit is contained in:
Michał Pysiak 2024-09-16 06:53:47 +02:00 committed by Grzegorz Sadowski
parent 1e216bf099
commit 593bd945c8
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364

View file

@ -48,6 +48,15 @@ Sylius\Component\Core\Model\Customer:
email: "<current()>\\@doe.com"
emailCanonical: "<current()>\\@doe.com"
birthday: "<(new \\DateTime())>"
createdAt: "<(new \\DateTime('-1 days'))>"
group: '@group_premium'
customer_{dave}:
firstName: "<current()>"
lastName: "Doe"
email: "<current()>\\@doe.com"
emailCanonical: "<current()>\\@doe.com"
birthday: "<(new \\DateTime())>"
createdAt: "<(new \\DateTime('-2 days'))>"
group: '@group_premium'
customer_{tony}:
firstName: "<current()>"
@ -55,4 +64,5 @@ Sylius\Component\Core\Model\Customer:
email: "<current()>\\@doe.com"
emailCanonical: "<current()>\\@doe.com"
birthday: "<(new \\DateTime())>"
createdAt: "<(new \\DateTime('-3 days'))>"
defaultAddress: '@address'