PayPal\Test\Functional\Api\BillingAgreementsFunctionalTest::testCreatePayPalAgreement PHP Метод

testCreatePayPalAgreement() публичный Метод

public testCreatePayPalAgreement ( ) : PayPal\Api\Agreement
Результат PayPal\Api\Agreement
    public function testCreatePayPalAgreement()
    {
        $plan = BillingPlansFunctionalTest::getPlan();
        $request = $this->operation['request']['body'];
        $agreement = new Agreement($request);
        // Update the Schema to use a working Plan
        $agreement->getPlan()->setId($plan->getId());
        $result = $agreement->create($this->apiContext, $this->mockPayPalRestCall);
        $this->assertNotNull($result);
        return $result;
    }