mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-15 01:20:59 +00:00
[API] Merge zone fixtures with shipping methods fixtures in contract tests
This commit is contained in:
parent
aa1609b1f4
commit
6d33190353
4 changed files with 13 additions and 18 deletions
|
|
@ -33,3 +33,14 @@ Sylius\Component\Shipping\Model\ShippingMethodTranslation:
|
|||
locale: 'en_US'
|
||||
description: '<paragraph(2)>'
|
||||
translatable: '@shipping_method_dhl'
|
||||
|
||||
Sylius\Component\Addressing\Model\ZoneMember:
|
||||
zone_member_{US, FR, DE}:
|
||||
code: '<current()>'
|
||||
|
||||
Sylius\Component\Addressing\Model\Zone:
|
||||
zone_world:
|
||||
code: 'WORLD'
|
||||
name: 'World'
|
||||
type: 'country'
|
||||
members: ['@zone_member_US', '@zone_member_FR', '@zone_member_DE']
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
Sylius\Component\Addressing\Model\ZoneMember:
|
||||
zone_member_{US, FR, DE}:
|
||||
code: '<current()>'
|
||||
|
||||
Sylius\Component\Addressing\Model\Zone:
|
||||
zone_world:
|
||||
code: 'WORLD'
|
||||
name: 'World'
|
||||
type: 'country'
|
||||
members: ['@zone_member_US', '@zone_member_FR', '@zone_member_DE']
|
||||
|
|
@ -26,13 +26,7 @@ final class OrdersTest extends JsonApiTestCase
|
|||
/** @test */
|
||||
public function it_gets_an_order(): void
|
||||
{
|
||||
$this->loadFixturesFromFiles([
|
||||
'cart.yaml',
|
||||
'country.yaml',
|
||||
'zone.yaml',
|
||||
'shipping_method.yaml',
|
||||
'payment_method.yaml'
|
||||
]);
|
||||
$this->loadFixturesFromFiles(['cart.yaml', 'country.yaml', 'shipping_method.yaml', 'payment_method.yaml']);
|
||||
|
||||
$tokenValue = 'nAWw2jewpA';
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ final class ShippingMethodsTest extends JsonApiTestCase
|
|||
/** @test */
|
||||
public function it_gets_available_shipping_methods(): void
|
||||
{
|
||||
$this->loadFixturesFromFiles(['cart.yaml', 'country.yaml', 'zone.yaml', 'shipping_method.yaml']);
|
||||
$this->loadFixturesFromFiles(['cart.yaml', 'country.yaml', 'shipping_method.yaml']);
|
||||
|
||||
$tokenValue = 'nAWw2jewpA';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue