mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-13 08:31:32 +00:00
[Zone] Fix unit tests
This commit is contained in:
parent
7dd0704711
commit
92786087cf
3 changed files with 12 additions and 8 deletions
|
|
@ -71,11 +71,11 @@ final class ZonesTest extends JsonApiTestCase
|
|||
content: json_encode([
|
||||
'code' => 'US',
|
||||
'name' => 'UnitedStates',
|
||||
'type' => 'province',
|
||||
'type' => 'country',
|
||||
'members' => [
|
||||
['code' => 'AL'],
|
||||
['code' => 'CA'],
|
||||
['code' => 'NY'],
|
||||
['code' => 'NL'],
|
||||
['code' => 'BE'],
|
||||
['code' => 'PL'],
|
||||
],
|
||||
]),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
Sylius\Component\Addressing\Model\Country:
|
||||
country_{DE, FR, PL, NL, BE}:
|
||||
code: <current()>
|
||||
|
||||
Sylius\Component\Addressing\Model\ZoneMember:
|
||||
member_{DE, FR, PL, NL, BE}:
|
||||
code: <current()>
|
||||
|
|
|
|||
|
|
@ -5,20 +5,20 @@
|
|||
"id": "@integer@",
|
||||
"code": "US",
|
||||
"name": "UnitedStates",
|
||||
"type": "province",
|
||||
"type": "country",
|
||||
"scope": "all",
|
||||
"members": [
|
||||
{
|
||||
"@type": "ZoneMember",
|
||||
"code": "AL"
|
||||
"code": "NL"
|
||||
},
|
||||
{
|
||||
"@type": "ZoneMember",
|
||||
"code": "CA"
|
||||
"code": "BE"
|
||||
},
|
||||
{
|
||||
"@type": "ZoneMember",
|
||||
"code": "NY"
|
||||
"code": "PL"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue