File manager - Edit - /home/opticamezl/www/newok/libraries/fabrik/vendor/omnipay/manual/tests/GatewayTest.php
Back
<?php namespace Omnipay\Manual; use Omnipay\Tests\GatewayTestCase; class GatewayTest extends GatewayTestCase { public function setUp() { parent::setUp(); $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); $this->options = array( 'amount' => 1000 ); } public function testAuthorize() { $response = $this->gateway->authorize($this->options)->send(); $this->assertInstanceOf('\Omnipay\Manual\Message\Response', $response); $this->assertTrue($response->isSuccessful()); $this->assertFalse($response->isRedirect()); $this->assertNull($response->getTransactionReference()); $this->assertNull($response->getMessage()); } public function testCapture() { $response = $this->gateway->capture($this->options)->send(); $this->assertInstanceOf('\Omnipay\Manual\Message\Response', $response); $this->assertTrue($response->isSuccessful()); $this->assertFalse($response->isRedirect()); $this->assertNull($response->getTransactionReference()); $this->assertNull($response->getMessage()); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings