File manager - Edit - /home/opticamezl/www/newok/libraries/fabrik/vendor/omnipay/gocardless/tests/Message/CompletePurchaseResponseTest.php
Back
<?php namespace Omnipay\GoCardless\Message; use Omnipay\Tests\TestCase; class CompletePurchaseResponseTest extends TestCase { public function testCompletePurchaseSuccess() { $httpResponse = $this->getMockHttpResponse('CompletePurchaseSuccess.txt'); $response = new CompletePurchaseResponse($this->getMockRequest(), $httpResponse->json(), 'abc123'); $this->assertTrue($response->isSuccessful()); $this->assertSame('abc123', $response->getTransactionReference()); $this->assertNull($response->getMessage()); } public function testCompletePurchaseFailure() { $httpResponse = $this->getMockHttpResponse('CompletePurchaseFailure.txt'); $response = new CompletePurchaseResponse($this->getMockRequest(), $httpResponse->json(), 'abc123'); $this->assertFalse($response->isSuccessful()); $this->assertSame('abc123', $response->getTransactionReference()); $this->assertSame('The resource cannot be confirmed', $response->getMessage()); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings