This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
/
fixtures.yml
70 lines (67 loc) · 2.51 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Hellonico\Fixtures\Entity\User:
user{1..2}:
user_login (unique): <username()>
user_pass: '123456'
user_email: '<safeEmail()>'
user_url: '<url()>'
user_registered: '<dateTimeThisDecade()>'
first_name: '<firstName()>'
last_name: '<lastName()>'
description: '<sentence()>'
role: '<randomElement(["subscriber", "customer"])>'
meta:
billing_first_name: '<firstName()>'
billing_last_name: '<lastName()>'
billing_company: '<company()>'
billing_address_1: '<streetAddress()>'
billing_address_2: '<secondaryAddress()>'
billing_city: '<city()>'
billing_postcode: '<postcode()>'
billing_country: '<countryCode()>'
billing_state: '<state()>'
billing_phone: '<phoneNumber()>'
billing_email: '<safeEmail()>'
shipping_first_name: '<firstName()>'
shipping_last_name: '<lastName()>'
shipping_company: '<company()>'
shipping_address_1: '<streetAddress()>'
shipping_address_2: '<secondaryAddress()>'
shipping_city: '<city()>'
shipping_postcode: '<postcode()>'
shipping_country: '<countryCode()>'
shipping_state: '<state()>'
Hellonico\Fixtures\Entity\Term:
category{1..2}:
name (unique): '<productCategoryName())>'
description: '<sentence()>'
parent: '50%? <termId(childless=1)>'
taxonomy: 'product_cat'
tag{1..2}:
name (unique): '<words(2, true)>'
description: '<sentence()>'
taxonomy: 'product_tag'
Hellonico\Fixtures\Entity\Post:
product{1..2}:
post_title: '<productName()>'
post_type: 'product'
# post_status: '<randomElement(["draft", "pending", "private", "publish"])>'
post_content: '<paragraphs(rand(1,5), true)>'
post_excerpt: '<paragraphs(1, true)>'
tax_input:
product_cat: '<numberBetween(1, 3)>x @category*->term_id'
product_tag: '<numberBetween(1, 5)>x @tag*->term_id'
product_type: '<randomElement(["simple", "grouped", "variable"])>'
meta:
_backorders: '<randomElement(["yes", "no"])>'
_downloadable: '<randomElement(["yes", "no"])>'
_manage_stock: '<randomElement(["yes", "no"])>'
_price: '<productPrice()>'
_sku: '<ean13()>'
_sold_individually: '<randomElement(["yes", "no"])>'
_stock: '<numberBetween(1, 100)>'
_tax_class: '<randomElement(["standard", "vat"])>'
_tax_status: '<randomElement(["taxable", "shipping", "none"])>'
_virtual: '<randomElement(["yes", "no"])>'
_weight: '<numberBetween(1, 100)>'
# order{1..2}:
# post_type: 'shop_order'