Skip to content

Apply fixes from StyleCI #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Paymongo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Luigel\Paymongo;

use Luigel\Paymongo\Models\Refund;
use Luigel\Paymongo\Models\Payment;
use Luigel\Paymongo\Models\PaymentIntent;
use Luigel\Paymongo\Models\PaymentMethod;
use Luigel\Paymongo\Models\Refund;
use Luigel\Paymongo\Models\Source;
use Luigel\Paymongo\Models\Token;
use Luigel\Paymongo\Models\Webhook;
Expand Down
8 changes: 4 additions & 4 deletions tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

use Luigel\Paymongo\Models\Token;
use Luigel\Paymongo\Models\Source;
use Luigel\Paymongo\Models\Payment;
use Luigel\Paymongo\Facades\Paymongo;
use Luigel\Paymongo\Models\Payment;
use Luigel\Paymongo\Models\PaymentIntent;
use Luigel\Paymongo\Models\Source;
use Luigel\Paymongo\Models\Token;
use Luigel\Paymongo\Tests\BaseTestCase;
use Luigel\Paymongo\Traits\Request;
use Luigel\Paymongo\Models\PaymentIntent;

uses(BaseTestCase::class, Request::class)
->in(__DIR__);
Expand Down
9 changes: 4 additions & 5 deletions tests/RefundTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Luigel\Paymongo\Models\Refund;
use Illuminate\Support\Collection;
use Luigel\Paymongo\Facades\Paymongo;
use Luigel\Paymongo\Models\Refund;

it('can create refund', function (string $reason) {
$token = createToken();
Expand All @@ -29,7 +29,6 @@
'reason others' => [Refund::REASON_OTHERS],
]);


it('can retrieve a refund', function () {
$token = createToken();
$payment = createPayment($token);
Expand All @@ -53,9 +52,9 @@
});

it('can get all refunds', function () {
$refunds = Paymongo::refund()->all();
$refunds = Paymongo::refund()->all();

expect($refunds)->toBeInstanceOf(Collection::class)
expect($refunds)->toBeInstanceOf(Collection::class)
->each
->toBeInstanceOf(Refund::class);
});
});