PHP Class PayPal\Test\Api\OrderTest

Inheritance: extends PHPUnit_Framework_TestCase
Mostra file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
getJson ( ) : string Gets Json String of Object Order
getObject ( ) : Order Gets Object Instance with Json data filled in
mockProvider ( )
testAuthorize ( Order $obj, $mockApiContext )
testCapture ( Order $obj, $mockApiContext )
testGet ( Order $obj, $mockApiContext )
testGetters ( Order $obj )
testSerializationDeserialization ( ) : Order Tests for Serialization and Deserialization Issues
testVoid ( Order $obj, $mockApiContext )

Method Details

getJson() public static method

Gets Json String of Object Order
public static getJson ( ) : string
return string

getObject() public static method

Gets Object Instance with Json data filled in
public static getObject ( ) : Order
return PayPal\Api\Order

mockProvider() public method

public mockProvider ( )

testAuthorize() public method

public testAuthorize ( Order $obj, $mockApiContext )
$obj PayPal\Api\Order

testCapture() public method

public testCapture ( Order $obj, $mockApiContext )
$obj PayPal\Api\Order

testGet() public method

public testGet ( Order $obj, $mockApiContext )
$obj PayPal\Api\Order

testGetters() public method

public testGetters ( Order $obj )
$obj PayPal\Api\Order

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : Order
return PayPal\Api\Order

testVoid() public method

public testVoid ( Order $obj, $mockApiContext )
$obj PayPal\Api\Order