PayPal\Test\Functional\Api\PayoutsFunctionalTest::testGet PHP Метод

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

public testGet ( $payoutBatch ) : PayoutBatch
$payoutBatch PayoutBatch
Результат PayPal\Api\PayoutBatch
    public function testGet($payoutBatch)
    {
        $result = Payout::get($payoutBatch->getBatchHeader()->getPayoutBatchId(), $this->apiContext, $this->mockPayPalRestCall);
        $this->assertNotNull($result);
        $this->assertNotNull($result->getBatchHeader()->getBatchStatus());
        $this->assertEquals(PayoutsFunctionalTest::$batchId, $result->getBatchHeader()->getSenderBatchHeader()->getSenderBatchId());
        return $result;
    }