Open Journal Systems
3.3.0
IssuerTest.php
1
<?php
2
3
namespace
Omnipay\Common
;
4
5
use Omnipay\Tests\TestCase;
6
7
class
IssuerTest
extends
TestCase
8
{
9
public
function
testConstruct
()
10
{
11
$issuer =
new
Issuer
(
'99'
,
'Acme Corp'
);
12
13
$this->assertSame(
'99'
, $issuer->getId());
14
$this->assertSame(
'Acme Corp'
, $issuer->getName());
15
$this->assertNull($issuer->getPaymentMethod());
16
}
17
18
public
function
testConstructWithPaymentMethod
()
19
{
20
$issuer =
new
Issuer
(
'99'
,
'Acme Corp'
,
'ideal'
);
21
22
$this->assertSame(
'99'
, $issuer->getId());
23
$this->assertSame(
'Acme Corp'
, $issuer->getName());
24
$this->assertSame(
'ideal'
, $issuer->getPaymentMethod());
25
}
26
}
Omnipay\Common\IssuerTest
Definition:
IssuerTest.php:7
Omnipay\Common\IssuerTest\testConstruct
testConstruct()
Definition:
IssuerTest.php:9
Omnipay\Common\Issuer
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Issuer.php:14
Omnipay\Common\IssuerTest\testConstructWithPaymentMethod
testConstructWithPaymentMethod()
Definition:
IssuerTest.php:18
Omnipay\Common
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/AbstractGateway.php:6
plugins
paymethod
paypal
lib
vendor
omnipay
common
tests
Omnipay
Common
IssuerTest.php
Generated on Fri Aug 28 2020 14:52:27 for Open Journal Systems by
1.8.17