public testDelete ( PayPal\Api\WebProfile $obj, $mockApiContext ) | ||
$obj | PayPal\Api\WebProfile |
public function testDelete($obj, $mockApiContext)
{
$mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
$mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(true));
$result = $obj->delete($mockApiContext, $mockPPRestCall);
$this->assertNotNull($result);
}