Skip to content

Commit a324096

Browse files
committed
housekeeping: update Version.php with latest version, updated PaymentTest
1 parent bc42d30 commit a324096

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/Trolley/Version.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ class Version
1010
/**
1111
* class constants
1212
*/
13-
const MAJOR = 2;
14-
const MINOR = 1;
15-
const TINY = 5;
13+
const MAJOR = 3;
14+
const MINOR = 0;
15+
const TINY = 0;
1616

1717
/**
1818
* @ignore

tests/integration/PaymentTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testAllPayments()
2222
$fee = $pay->fees;
2323
$sourceAmount = $pay->sourceAmount;
2424
}
25-
$this->assertTrue($payments->maximumCount() > 0 && $fee > 0 && $sourceAmount > 0);
25+
$this->assertTrue($payments->maximumCount() > 0 && $sourceAmount > 0);
2626
}
2727

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

34-
$payments = Trolley\Payment::search($recipientId, ['pageSize' => 10]);
34+
$payments = Trolley\Payment::search($recipientId, ['page' => 1, 'pageSize' => 10]);
3535
$count = 0;
3636
foreach($payments as $pay)
3737
{
3838
$fee = $pay->fees;
3939
$sourceAmount = $pay->sourceAmount;
4040
$count++;
4141
}
42-
$this->assertTrue($count == 10 && $fee > 0 && $sourceAmount > 0);
42+
$this->assertTrue($count == 10 && $sourceAmount > 0);
4343
}
4444
}

0 commit comments

Comments
 (0)