Esempio n. 1
0
 /**
  * @dataProvider mockProvider
  * @param Agreement $obj
  */
 public function testBillBalance($obj, $mockApiContext)
 {
     $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(true));
     $agreementStateDescriptor = AgreementStateDescriptorTest::getObject();
     $result = $obj->billBalance($agreementStateDescriptor, $mockApiContext, $mockPayPalRestCall);
     $this->assertNotNull($result);
 }