Skip to content

Commit

Permalink
Fix coverage for ISV
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien Nikolaou committed Nov 30, 2024
1 parent 4783805 commit 6f71e5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/Unit/Services/ISV/OrderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
use GuzzleHttp\Exception\GuzzleException;
use Sebdesign\VivaPayments\Requests\CreatePaymentOrder;
use Sebdesign\VivaPayments\Requests\Customer;
use Sebdesign\VivaPayments\Services\ISV\Order;
use Sebdesign\VivaPayments\Test\TestCase;
use Sebdesign\VivaPayments\VivaException;

/**
* @covers \Sebdesign\VivaPayments\Client
* @covers \Sebdesign\VivaPayments\Services\ISV
* @covers \Sebdesign\VivaPayments\Services\ISV\Order
*/
class OrderTest extends TestCase
Expand All @@ -29,9 +29,7 @@ public function it_creates_an_isv_payment_order(): void
$this->mockJsonResponses(['orderCode' => '1272214778972604']);
$this->mockRequests();

$this->client->withToken('test');

$order = new Order($this->client);
$order = $this->client->withToken('test')->isv()->orders();

$orderCode = $order->create(new CreatePaymentOrder(
amount: 1000,
Expand Down
1 change: 1 addition & 0 deletions tests/Unit/Services/ISV/TransactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/**
* @covers \Sebdesign\VivaPayments\Client
* @covers \Sebdesign\VivaPayments\Services\ISV
* @covers \Sebdesign\VivaPayments\Services\ISV\Transaction
*/
class TransactionTest extends TestCase
Expand Down

0 comments on commit 6f71e5d

Please sign in to comment.