-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add release-authorization endpoint
- Loading branch information
Showing
3 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Mollie\Api\Tests\Http\Requests; | ||
|
||
use Mollie\Api\Fake\MockMollieClient; | ||
use Mollie\Api\Fake\MockResponse; | ||
use Mollie\Api\Http\Requests\DynamicPostRequest; | ||
use Mollie\Api\Http\Response; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class ReleasePaymentAuthorizationTest extends TestCase | ||
{ | ||
/** @test */ | ||
public function it_can_release_payment_authorization() | ||
{ | ||
$client = new MockMollieClient([ | ||
DynamicPostRequest::class => MockResponse::created(''), | ||
]); | ||
|
||
$request = new DynamicPostRequest('payments/tr_WDqYK6vllg/release-authorization'); | ||
|
||
/** @var Response $response */ | ||
$response = $client->send($request); | ||
|
||
$this->assertTrue($response->successful()); | ||
} | ||
} |