33namespace Paylike \Tests ;
44
55use Paylike \Endpoint \Merchant \Lines ;
6+ use Paylike \Paylike ;
67
78class MerchantsLinesTest extends BaseTest
89{
@@ -14,7 +15,8 @@ class MerchantsLinesTest extends BaseTest
1415 /**
1516 *
1617 */
17- public function setUp () {
18+ public function setUp ()
19+ {
1820 parent ::setUp ();
1921 $ this ->lines = $ this ->paylike ->merchants ()->lines ();
2022 }
@@ -23,10 +25,11 @@ public function setUp() {
2325 /**
2426 * @throws \Exception
2527 */
26- public function testGetAllLinesCursor () {
28+ public function testGetAllLinesCursor ()
29+ {
2730 $ merchant_id = $ this ->merchant_id ;
28- $ api_lines = $ this ->lines ->find ($ merchant_id );
29- $ ids = array ();
31+ $ api_lines = $ this ->lines ->find ($ merchant_id );
32+ $ ids = array ();
3033 foreach ($ api_lines as $ line ) {
3134 // the lines array grows as needed
3235 $ ids [] = $ line ['id ' ];
@@ -38,11 +41,12 @@ public function testGetAllLinesCursor() {
3841 /**
3942 * @throws \Exception
4043 */
41- public function testGetAllLinesCursorBefore () {
44+ public function testGetAllLinesCursorBefore ()
45+ {
4246 $ merchant_id = $ this ->merchant_id ;
43- $ before = '5da8594efd0c53603c7bb3a5 ' ;
47+ $ before = '5da8594efd0c53603c7bb3a5 ' ;
4448 $ api_lines = $ this ->lines ->before ($ merchant_id , $ before );
45- $ ids = array ();
49+ $ ids = array ();
4650 foreach ($ api_lines as $ line ) {
4751 // the lines array grows as needed
4852 $ ids [] = $ line ['id ' ];
@@ -54,16 +58,18 @@ public function testGetAllLinesCursorBefore() {
5458 /**
5559 * @throws \Exception
5660 */
57- public function testGetAllMerchantsCursorAfter () {
61+ public function testGetAllMerchantsCursorAfter ()
62+ {
5863 $ merchant_id = $ this ->merchant_id ;
59- $ after = '5da8594efd0c53603c7bb3a5 ' ;
64+ $ after = '5da8594efd0c53603c7bb3a5 ' ;
6065 $ api_lines = $ this ->lines ->after ($ merchant_id , $ after );
61- $ ids = array ();
66+ $ ids = array ();
6267 foreach ($ api_lines as $ line ) {
6368 // the lines array grows as needed
6469 $ ids [] = $ line ['id ' ];
6570 }
6671
6772 $ this ->assertGreaterThan (0 , count ($ api_lines ), 'number of lines ' );
6873 }
74+
6975}
0 commit comments