getJson() public static method

Gets Json String of Object BankAccount
public static getJson ( ) : string
return string
Esempio n. 1
0
 /**
  * @dataProvider mockProvider
  * @param BankAccount $obj
  */
 public function testGet($obj, $mockApiContext)
 {
     $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(BankAccountTest::getJson()));
     $result = $obj->get("bankAccountId", $mockApiContext, $mockPayPalRestCall);
     $this->assertNotNull($result);
 }
Esempio n. 2
0
 /**
  * Gets Json String of Object BankAccountsList
  * @return string
  */
 public static function getJson()
 {
     return '{"bank-accounts":' . BankAccountTest::getJson() . ',"count":123,"next_id":"TestSample"}';
 }