FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixing tests. · JavaDevl/framework@571d549 · GitHub

Repository navigation

Commit 571d549

Browse files
committed
Fixing tests.
1 parent 5a4b165 commit 571d549

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎tests/Pagination/PaginationPaginatorTest.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testPresenterCanGetAUrlRangeForAWindowOfLinks()
5050
$array = [];
5151
for ($i = 1; $i <= 13; $i++)
5252
$array[$i] = 'item'.$i;
53-
$p = new LengthAwarePaginator($array, count($array), 7, 1);
53+
$p = new LengthAwarePaginator($array, count($array), 1, 7);
5454
$window = new UrlWindow($p);
5555
$slider = [];
5656
for ($i = 4; $i <= 10; $i++)
@@ -61,7 +61,7 @@ public function testPresenterCanGetAUrlRangeForAWindowOfLinks()
6161
/**
6262
* Test Being Near The End Of The List
6363
*/
64-
$p = new LengthAwarePaginator($array, count($array), 8, 1);
64+
$p = new LengthAwarePaginator($array, count($array), 1, 8);
6565
$window = new UrlWindow($p);
6666
$last = [];
6767
for ($i = 5; $i <= 13; $i++)
@@ -102,7 +102,7 @@ public function testBootstrapPresenterCanGeneratorLinksForTooCloseToEnding()
102102
$array = [];
103103
for ($i = 1; $i <= 13; $i++)
104104
$array[$i] = 'item'.$i;
105-
$p = new LengthAwarePaginator($array, count($array), 12, 1);
105+
$p = new LengthAwarePaginator($array, count($array), 1, 12);
106106
$presenter = new BootstrapPresenter($p);
107107

108108
$this->assertEquals(trim(file_get_contents(__DIR__.'/fixtures/ending.html')), $presenter->render());
@@ -114,7 +114,7 @@ public function testBootstrapPresenterCanGeneratorLinksForWhenOnLastPage()
114114
$array = [];
115115
for ($i = 1; $i <= 13; $i++)
116116
$array[$i] = 'item'.$i;
117-
$p = new LengthAwarePaginator($array, count($array), 13, 1);
117+
$p = new LengthAwarePaginator($array, count($array), 1, 13);
118118
$presenter = new BootstrapPresenter($p);
119119

120120
$this->assertEquals(trim(file_get_contents(__DIR__.'/fixtures/last_page.html')), $presenter->render());

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL