Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Trolley/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class Version
/**
* class constants
*/
const MAJOR = 2;
const MINOR = 1;
const TINY = 5;
const MAJOR = 3;
const MINOR = 0;
const TINY = 0;

/**
* @ignore
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/PaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function testAllPayments()
$fee = $pay->fees;
$sourceAmount = $pay->sourceAmount;
}
$this->assertTrue($payments->maximumCount() > 0 && $fee > 0 && $sourceAmount > 0);
$this->assertTrue($payments->maximumCount() > 0 && $sourceAmount > 0);
}

//Function which will test to see if they search works by only selecting the
Expand All @@ -31,14 +31,14 @@ public function testOnlyGet10Payments()
{
$recipientId = 'R-4QoXiSPjbnLuUmQR2bgb8C';

$payments = Trolley\Payment::search($recipientId, ['pageSize' => 10]);
$payments = Trolley\Payment::search($recipientId, ['page' => 1, 'pageSize' => 10]);
$count = 0;
foreach($payments as $pay)
{
$fee = $pay->fees;
$sourceAmount = $pay->sourceAmount;
$count++;
}
$this->assertTrue($count == 10 && $fee > 0 && $sourceAmount > 0);
$this->assertTrue($count == 10 && $sourceAmount > 0);
}
}