riainvoice/vendor_old/omnipay/2checkout/tests/Message/CompletePurchaseResponseTest.php
2021-10-01 23:56:38 +05:30

19 lines
525 B
PHP

<?php
namespace Omnipay\TwoCheckout\Message;
use Omnipay\Tests\TestCase;
class CompletePurchaseResponseTest extends TestCase
{
public function testConstruct()
{
$response = new CompletePurchaseresponse($this->getMockRequest(), array('order_number' => 'abc123'));
$this->assertTrue($response->isSuccessful());
$this->assertFalse($response->isRedirect());
$this->assertSame('abc123', $response->getTransactionReference());
$this->assertNull($response->getMessage());
}
}