PayPal\Test\Functional\Api\BillingAgreementsFunctionalTest::testGet PHP Method

testGet() public method

public testGet ( $agreement ) : PayPal\Api\Plan
$agreement Agreement
return PayPal\Api\Plan
    public function testGet($agreement)
    {
        $result = Agreement::get($agreement->getId(), $this->apiContext, $this->mockPayPalRestCall);
        $this->assertNotNull($result);
        $this->assertEquals($agreement->getId(), $result->getId());
        return $result;
    }