PayPal\Test\Functional\Api\BillingPlansFunctionalTest::testUpdateChangingMerchantPreferences PHP Method

testUpdateChangingMerchantPreferences() public method

public testUpdateChangingMerchantPreferences ( $plan )
$plan Plan
    public function testUpdateChangingMerchantPreferences($plan)
    {
        /** @var Patch[] $request */
        $request = $this->operation['request']['body'][0];
        $patch = new Patch();
        $patch->setOp($request['op']);
        $patch->setPath($request['path']);
        $patch->setValue($request['value']);
        $patches = array();
        $patches[] = $patch;
        $patchRequest = new PatchRequest();
        $patchRequest->setPatches($patches);
        $result = $plan->update($patchRequest, $this->apiContext, $this->mockPayPalRestCall);
        $this->assertTrue($result);
    }