forked from LiveCarta/PayPal-PHP-SDK
testcases updated
updated testcases to match new json schema and updates with camel case function names
This commit is contained in:
@@ -24,14 +24,14 @@ class AmountTest extends \PHPUnit_Framework_TestCase {
|
||||
$this->amounts['partial'] = self::createAmount();
|
||||
|
||||
$amount = self::createAmount();
|
||||
$amount->setDetails(AmountDetailsTest::createAmountDetails());
|
||||
$amount->setDetails(DetailsTest::createAmountDetails());
|
||||
$this->amounts['full'] = $amount;
|
||||
}
|
||||
|
||||
public function testGetterSetter() {
|
||||
$this->assertEquals(self::$currency, $this->amounts['partial']->getCurrency());
|
||||
$this->assertEquals(self::$total, $this->amounts['partial']->getTotal());
|
||||
$this->assertEquals(AmountDetailsTest::$fee, $this->amounts['full']->getDetails()->getFee());
|
||||
$this->assertEquals(DetailsTest::$fee, $this->amounts['full']->getDetails()->getFee());
|
||||
}
|
||||
|
||||
public function testSerializeDeserialize() {
|
||||
|
||||
Reference in New Issue
Block a user