| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,7 +50,7 @@ public function testPresenterCanGetAUrlRangeForAWindowOfLinks() | |||
| 50 | 50 | $array = []; | |
| 51 | 51 | for ($i = 1; $i <= 13; $i++) | |
| 52 | 52 | $array[$i] = 'item'.$i; | |
| 53 | - $p = new LengthAwarePaginator($array, count($array), 7, 1); | ||
| 53 | + $p = new LengthAwarePaginator($array, count($array), 1, 7); | ||
| 54 | 54 | $window = new UrlWindow($p); | |
| 55 | 55 | $slider = []; | |
| 56 | 56 | for ($i = 4; $i <= 10; $i++) | |
@@ -61,7 +61,7 @@ public function testPresenterCanGetAUrlRangeForAWindowOfLinks() | |||
| 61 | 61 | /** | |
| 62 | 62 | * Test Being Near The End Of The List | |
| 63 | 63 | */ | |
| 64 | - $p = new LengthAwarePaginator($array, count($array), 8, 1); | ||
| 64 | + $p = new LengthAwarePaginator($array, count($array), 1, 8); | ||
| 65 | 65 | $window = new UrlWindow($p); | |
| 66 | 66 | $last = []; | |
| 67 | 67 | for ($i = 5; $i <= 13; $i++) | |
@@ -102,7 +102,7 @@ public function testBootstrapPresenterCanGeneratorLinksForTooCloseToEnding() | |||
| 102 | 102 | $array = []; | |
| 103 | 103 | for ($i = 1; $i <= 13; $i++) | |
| 104 | 104 | $array[$i] = 'item'.$i; | |
| 105 | - $p = new LengthAwarePaginator($array, count($array), 12, 1); | ||
| 105 | + $p = new LengthAwarePaginator($array, count($array), 1, 12); | ||
| 106 | 106 | $presenter = new BootstrapPresenter($p); | |
| 107 | 107 | ||
| 108 | 108 | $this->assertEquals(trim(file_get_contents(__DIR__.'/fixtures/ending.html')), $presenter->render()); | |
@@ -114,7 +114,7 @@ public function testBootstrapPresenterCanGeneratorLinksForWhenOnLastPage() | |||
| 114 | 114 | $array = []; | |
| 115 | 115 | for ($i = 1; $i <= 13; $i++) | |
| 116 | 116 | $array[$i] = 'item'.$i; | |
| 117 | - $p = new LengthAwarePaginator($array, count($array), 13, 1); | ||
| 117 | + $p = new LengthAwarePaginator($array, count($array), 1, 13); | ||
| 118 | 118 | $presenter = new BootstrapPresenter($p); | |
| 119 | 119 | ||
| 120 | 120 | $this->assertEquals(trim(file_get_contents(__DIR__.'/fixtures/last_page.html')), $presenter->render()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments