mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
Remove payum env by using usePayum field
This commit is contained in:
parent
28a7c293e7
commit
a4e5753c39
3 changed files with 35 additions and 38 deletions
|
|
@ -0,0 +1,6 @@
|
|||
Sylius\Bundle\PayumBundle\Model\GatewayConfig:
|
||||
gateway_offline:
|
||||
gatewayName: 'Offline'
|
||||
factoryName: 'offline'
|
||||
usePayum: false
|
||||
config: []
|
||||
|
|
@ -43,4 +43,5 @@ Sylius\Bundle\PayumBundle\Model\GatewayConfig:
|
|||
gateway_offline:
|
||||
gatewayName: 'Offline'
|
||||
factoryName: 'offline'
|
||||
usePayum: true
|
||||
config: []
|
||||
|
|
|
|||
|
|
@ -262,25 +262,20 @@ final class PaymentRequestsTest extends JsonApiTestCase
|
|||
|
||||
public function createPaymentRequestProvider(): iterable
|
||||
{
|
||||
$environment = getenv('APP_ENV');
|
||||
yield 'Payment request' => [
|
||||
[
|
||||
'authentication/shop_user.yaml',
|
||||
'channel/channel.yaml',
|
||||
'cart.yaml',
|
||||
'country.yaml',
|
||||
'shipping_method.yaml',
|
||||
'payment_method.yaml',
|
||||
'gateway_config_payment_request.yaml',
|
||||
],
|
||||
'shop/payment_request/post_payment_request',
|
||||
];
|
||||
|
||||
if ($environment === 'test_cached_payum') {
|
||||
yield [
|
||||
[
|
||||
'authentication/shop_user.yaml',
|
||||
'channel/channel.yaml',
|
||||
'cart.yaml',
|
||||
'country.yaml',
|
||||
'shipping_method.yaml',
|
||||
'payment_method.yaml',
|
||||
],
|
||||
'shop/payment_request/post_payment_request_payum',
|
||||
];
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
yield [
|
||||
yield 'Payum' => [
|
||||
[
|
||||
'authentication/shop_user.yaml',
|
||||
'channel/channel.yaml',
|
||||
|
|
@ -289,38 +284,33 @@ final class PaymentRequestsTest extends JsonApiTestCase
|
|||
'shipping_method.yaml',
|
||||
'payment_method.yaml',
|
||||
],
|
||||
'shop/payment_request/post_payment_request',
|
||||
'shop/payment_request/post_payment_request_payum',
|
||||
];
|
||||
}
|
||||
|
||||
public function updatePaymentRequestProvider(): iterable
|
||||
public static function updatePaymentRequestProvider(): iterable
|
||||
{
|
||||
$environment = getenv('APP_ENV');
|
||||
|
||||
if ($environment === 'test_cached_payum') {
|
||||
yield [
|
||||
[
|
||||
'authentication/shop_user.yaml',
|
||||
'channel/channel.yaml',
|
||||
'payment_method.yaml',
|
||||
'payment_request/payment_request_payum.yaml',
|
||||
'payment_request/order_with_customer.yaml',
|
||||
],
|
||||
'shop/payment_request/put_payment_request_payum',
|
||||
];
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
yield [
|
||||
yield 'Payment Request' => [
|
||||
[
|
||||
'authentication/shop_user.yaml',
|
||||
'channel/channel.yaml',
|
||||
'payment_method.yaml',
|
||||
'gateway_config_payment_request.yaml',
|
||||
'payment_request/payment_request.yaml',
|
||||
'payment_request/order_with_customer.yaml',
|
||||
],
|
||||
'shop/payment_request/put_payment_request',
|
||||
];
|
||||
|
||||
yield 'Payum' => [
|
||||
[
|
||||
'authentication/shop_user.yaml',
|
||||
'channel/channel.yaml',
|
||||
'payment_method.yaml',
|
||||
'payment_request/payment_request_payum.yaml',
|
||||
'payment_request/order_with_customer.yaml',
|
||||
],
|
||||
'shop/payment_request/put_payment_request_payum',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue