Fixes to Payout API Support Functional Tests

This commit is contained in:
japatel
2015-01-05 13:31:22 -06:00
parent 6f13399e47
commit c51c78a722
3 changed files with 67 additions and 67 deletions

View File

@@ -89,7 +89,8 @@ class PayoutsFunctionalTest extends \PHPUnit_Framework_TestCase
*/
public function testGetItem($payoutBatch)
{
$item = $payoutBatch->getItems()[0];
$items = $payoutBatch->getItems();
$item = $items[0];
$result = PayoutItem::get($item->getPayoutItemId(), null, $this->mockPayPalRestCall);
$this->assertNotNull($result);
$this->assertEquals($item->getPayoutItemId(), $result->getPayoutItemId());