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

23 lines
644 B
PHP

<?php
namespace Omnipay\FirstData\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->assertFalse($response->isSuccessful());
$this->assertTrue($response->isRedirect());
$this->assertNull($response->getTransactionReference());
$this->assertNull($response->getMessage());
$this->assertSame('POST', $response->getRedirectMethod());
}
}