forked from nelmio/alice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fixtures.yml
37 lines (33 loc) · 1.17 KB
/
fixtures.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# Scenario: set dynamic unique random data and make use of alice DSL
#
Nelmio\Alice\scenario3\ImmutableUser:
immutable_user_{0..1000}:
__construct:
0 (unique): <userName()>
1 (unique): <name()>
2 (unique): <dateTime()>
3 (unique): <email()>
4 (unique): <randomNumber()>
Nelmio\Alice\scenario3\MutableUser:
mutable_user_{0..1000}:
username (unique): <userName()>
fullname (unique): <name()>
createdAt (unique): <dateTimeBetween("-200 days", "now")>
updatedAt (unique): <dateTimeBetween($createdAt, "now")>
email (unique): <email()>
members (unique): '3x @immutable_user_*'
Nelmio\Alice\scenario3\PublicUser:
public_user_{0..1000}:
username (unique): <userName()>
fullname (unique): <name()>
birthDate (unique): <dateTime()>
email (unique): <email()>
favoriteNumber (unique): <randomNumber()>
stdClass:
std_user_{0..1000}:
username (unique): <userName()>
fullname (unique): <name()>
birthDate (unique): <dateTime()>
email (unique): <email()>
favoriteNumber (unique): <randomNumber()>