Skip to content

Commit

Permalink
FRW-8354: fix fixtures for b2b-mp
Browse files Browse the repository at this point in the history
  • Loading branch information
annakotiuk committed Nov 29, 2024
1 parent acba132 commit 868d8de
Showing 1 changed file with 74 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,91 @@
"key": "locale",
"arguments": { "id_locale": 66, "locale_name": "en_US" }
},
{
"type": "helper",
"name": "haveStore",
"key": "store",
"arguments": [{ "name": "TEST_STORE" }]
},
{
"type": "helper",
"name": "haveCountry",
"key": "country"
},
{
"type": "helper",
"name": "haveCustomer",
"key": "customer",
"arguments": [{ "locale": "#locale", "password": "change123" }]
},
{
"type": "helper",
"name": "haveCustomerAddress",
"key": "address",
"arguments": [{ "fkCustomer": "#customer.id_customer", "fkCountry": "#country.id_country" }]
},
{
"type": "helper",
"name": "confirmCustomer",
"key": "confirmedCustomer",
"arguments": ["#customer"]
},
{
"type": "builder",
"name": "MerchantProfileBuilder",
"key": "merchantProfile"
},
{
"type": "helper",
"name": "haveMerchant",
"key": "merchant",
"arguments": [
{
"merchantProfile": "#merchantProfile",
"isActive": true,
"status": "approved",
"storeRelation": {
"idStores": ["#store.id_store"]
}
}
]
},
{
"type": "helper",
"name": "haveCompany",
"key": "company",
"arguments": [{ "isActive": true, "status": "approved" }]
},

{
"type": "helper",
"name": "havePermissionByKey",
"key": "permission1",
"arguments": ["AddCartItemPermissionPlugin"]
},
{
"type": "helper",
"name": "haveCompanyRoleWithPermissions",
"arguments": [{ "isDefault": true, "fkCompany": "#company.id_company" }, ["#permission1"]]
},
{
"type": "helper",
"name": "haveCompanyBusinessUnit",
"key": "businessUnit",
"arguments": [{ "fkCompany": "#company.id_company" }]
},
{
"type": "helper",
"name": "haveCompanyUser",
"key": "companyUser",
"arguments": [
{
"customer": "#customer",
"fkCustomer": "#customer.id_customer",
"fkCompany": "#company.id_company",
"fkCompanyBusinessUnit": "#businessUnit.id_company_business_unit"
}
]
},
{
"type": "helper",
"name": "haveUser",
Expand Down

0 comments on commit 868d8de

Please sign in to comment.