Ejemplo n.º 1
0
 /**
  * @dataProvider mockProvider
  * @param Agreement $obj
  */
 public function testReActivate($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->reActivate($agreementStateDescriptor, $mockApiContext, $mockPayPalRestCall);
     $this->assertNotNull($result);
 }