riainvoice/vendor_old/omnipay/buckaroo/tests/Message/PayPalPurchaseRequestTest.php
2021-10-01 23:56:38 +05:30

29 lines
686 B
PHP

<?php
namespace Omnipay\Buckaroo\Message;
use Omnipay\Tests\TestCase;
class PayPalPurchaseRequestTest extends TestCase
{
public function setUp()
{
$this->request = new PayPalPurchaseRequest($this->getHttpClient(), $this->getHttpRequest());
$this->request->initialize(
array(
'websiteKey' => 'web',
'secretKey' => 'secret',
'amount' => '12.00',
'returnUrl' => 'https://www.example.com/return',
)
);
}
public function testGetData()
{
$data = $this->request->getData();
$this->assertSame('paypal', $data['Brq_payment_method']);
}
}