mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[Api][User] Adjust api tests
This commit is contained in:
parent
27bd3f4de3
commit
33109f9575
4 changed files with 5 additions and 19 deletions
|
|
@ -66,7 +66,7 @@ class SyliusApiExtension extends AbstractResourceExtension implements PrependExt
|
|||
'auth_code_class' => $resourcesConfig['api_auth_code']['classes']['model'],
|
||||
|
||||
'service' => [
|
||||
'user_provider' => 'sylius.user_provider.name_or_email',
|
||||
'user_provider' => 'sylius.admin_user.provider.name_based',
|
||||
'client_manager' => 'sylius.oauth_server.client_manager',
|
||||
],
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -16,14 +16,9 @@ Sylius\Bundle\ApiBundle\Model\RefreshToken:
|
|||
user: @admin
|
||||
token: SampleRefreshTokenODllODY4ZTQyOThlNWIyMjA1ZDhmZjE1ZDYyMGMwOTUxOWM2NGFmNGRjNjQ2NDBhMDVlNGZjMmQ0YzgyNDM2Ng
|
||||
|
||||
Sylius\Component\Core\Model\User:
|
||||
Sylius\Component\Core\Model\AdminUser:
|
||||
admin:
|
||||
plainPassword: sylius
|
||||
roles: [ROLE_API_ACCESS]
|
||||
enabled: true
|
||||
customer: @customerAdmin
|
||||
|
||||
Sylius\Component\Core\Model\Customer:
|
||||
customerAdmin:
|
||||
email: api@sylius.com
|
||||
emailCanonical: $email
|
||||
username: api@sylius.com
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
Sylius\Component\Core\Model\User:
|
||||
Sylius\Component\Core\Model\ShopUser:
|
||||
user_{Oliver, Roy, Thea}:
|
||||
plainPassword: <password()>
|
||||
roles: [ROLE_USER]
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"page": 1,
|
||||
"limit": 10,
|
||||
"pages": 1,
|
||||
"total": 6,
|
||||
"total": 5,
|
||||
"_links": {
|
||||
"self": {
|
||||
"href": "\/api\/customers\/?page=1&limit=10"
|
||||
|
|
@ -60,15 +60,6 @@
|
|||
"email": "Oliver@doe.com",
|
||||
"first_name": "Oliver",
|
||||
"last_name": "Doe"
|
||||
},
|
||||
{
|
||||
"id": @integer@,
|
||||
"user": {
|
||||
"id": @integer@,
|
||||
"username": "api@sylius.com",
|
||||
"enabled": true
|
||||
},
|
||||
"email": "api@sylius.com"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue