[API] Merge zone fixtures with shipping methods fixtures in contract tests

This commit is contained in:
Grzegorz Sadowski 2021-06-22 11:53:20 +02:00
parent aa1609b1f4
commit 6d33190353
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
4 changed files with 13 additions and 18 deletions

View file

@ -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']

View file

@ -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']

View file

@ -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';

View file

@ -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';