File manager - Edit - /home/opticamezl/www/newok/libraries/fabrik/vendor/omnipay/worldpay/tests/Message/PurchaseResponseTest.php
Back
<?php namespace Omnipay\WorldPay\Message; use Omnipay\Tests\TestCase; class PurchaseResponseTest extends TestCase { public function testPurchaseSuccess() { $response = new PurchaseResponse($this->getMockRequest(), array( 'amount' => 1000, 'returnUrl' => 'https://www.example.com/return', )); $this->getMockRequest()->shouldReceive('getEndpoint')->once()->andReturn('https://secure.worldpay.com/wcc/purchase'); $this->assertFalse($response->isSuccessful()); $this->assertTrue($response->isRedirect()); $this->assertNull($response->getTransactionReference()); $this->assertNull($response->getMessage()); $this->assertSame('https://secure.worldpay.com/wcc/purchase?amount=1000&returnUrl=https%3A%2F%2Fwww.example.com%2Freturn', $response->getRedirectUrl()); $this->assertSame('GET', $response->getRedirectMethod()); $this->assertNull($response->getRedirectData()); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.17 |
proxy
|
phpinfo
|
Settings