From 0991f889601dc423fb65e1be65ec99c96617bccb Mon Sep 17 00:00:00 2001 From: Mariano Goldman Date: Sat, 30 Nov 2024 16:59:03 -0300 Subject: [PATCH] Improve test coverage (#25) --- tests/MercadoPagoApiTest.php | 6 ------ tests/PaymentPreferenceBuilderTest.php | 3 ++- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/MercadoPagoApiTest.php b/tests/MercadoPagoApiTest.php index 6d50689..f42def8 100644 --- a/tests/MercadoPagoApiTest.php +++ b/tests/MercadoPagoApiTest.php @@ -23,12 +23,6 @@ public function setUp(): void ); } - protected function getEnvironmentSetUp($app) - { - $app['config']->set('mercadopago.client_id', env('MERCADOPAGO_API_CLIENT_ID')); - $app['config']->set('mercadopago.client_secret', env('MERCADOPAGO_API_CLIENT_SECRET')); - } - /** * @return void * @throws RequestException diff --git a/tests/PaymentPreferenceBuilderTest.php b/tests/PaymentPreferenceBuilderTest.php index eb86905..5d4571f 100644 --- a/tests/PaymentPreferenceBuilderTest.php +++ b/tests/PaymentPreferenceBuilderTest.php @@ -19,6 +19,7 @@ public function create_order_with_int_amount() ->title('My custom product') ->unitPrice(23.206) ->currency('ARS') + ->quantity(2) ->make() ->payerFirstName('John') ->payerLastName('Lennon') @@ -36,7 +37,7 @@ public function create_order_with_int_amount() 'items' => [ [ 'title' => 'My custom product', - 'quantity' => 1, + 'quantity' => 2, 'unit_price' => 23.21, 'currency' => 'ARS', ],