示例#1
0
 /**
  * @dataProvider mockProvider
  * @param Agreement $obj
  */
 public function testTransactions($obj, $mockApiContext)
 {
     $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(AgreementTransactionsTest::getJson()));
     $result = $obj->transactions("agreementId", $mockApiContext, $mockPayPalRestCall);
     $this->assertNotNull($result);
 }
 /**
  * @depends testGet
  * @param $agreement Agreement
  * @return Agreement
  */
 public function testGetTransactions($agreement)
 {
     $this->markTestSkipped('Skipped as the fix is on the way.');
     $result = Agreement::transactions($agreement->getId(), null, $this->mockPayPalRestCall);
     $this->assertNotNull($result);
 }