File manager - Edit - /home/opticamezl/www/newok/libraries/fabrik/vendor/omnipay/multisafepay/tests/Message/RestFetchPaymentMethodsRequestTest.php
Back
<?php namespace Omnipay\MultiSafepay\Message; use Omnipay\Tests\TestCase; class RestFetchPaymentMethodsRequestTest extends TestCase { /** * @var FetchPaymentMethodsRequest */ private $request; protected function setUp() { $this->request = new RestFetchPaymentMethodsRequest( $this->getHttpClient(), $this->getHttpRequest() ); $this->request->initialize( array( 'api_key' => '123456789', 'country' => 'NL' ) ); } public function testSendSuccess() { $this->setMockHttpResponse('RestFetchPaymentMethodsSuccess.txt'); $response = $this->request->send(); $paymentMethods = $response->getPaymentMethods(); $this->assertTrue($response->isSuccessful()); $this->assertFalse($response->isRedirect()); $this->assertNull($response->getTransactionReference()); $this->assertInternalType('array', $paymentMethods); $this->assertContainsOnlyInstancesOf('Omnipay\Common\PaymentMethod', $paymentMethods); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.1 |
proxy
|
phpinfo
|
Settings