forked from LiveCarta/PayPal-PHP-SDK
added transaction fee support to sale class
This commit is contained in:
18
tests/PayPal/Test/Api/TransactionFeeTest.php
Normal file
18
tests/PayPal/Test/Api/TransactionFeeTest.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace PayPal\Test\Api;
|
||||
|
||||
use PayPal\Api\TransactionFee;
|
||||
|
||||
class TransactionFeeTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testGetterSetter()
|
||||
{
|
||||
$tfee = new TransactionFee();
|
||||
$tfee->setCurrency('AUD');
|
||||
$this->assertEquals('AUD', $tfee->getCurrency());
|
||||
|
||||
$tfee->setValue('0.10');
|
||||
$this->assertEquals('0.10', $tfee->getValue());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user