PayPal\Test\Functional\Api\WebProfileFunctionalTest::testUpdate PHP Method

testUpdate() public method

public testUpdate ( $webProfile )
$webProfile WebProfile
    public function testUpdate($webProfile)
    {
        $boolValue = $webProfile->getInputFields()->getNoShipping();
        $newValue = ($boolValue + 1) % 2;
        $webProfile->getInputFields()->setNoShipping($newValue);
        $result = $webProfile->update($this->apiContext, $this->mockPayPalRestCall);
        $this->assertNotNull($result);
        $this->assertEquals($webProfile->getInputFields()->getNoShipping(), $newValue);
    }