Skip to content

Commit 3476eb6

Browse files
committed
test: fix and add test
1 parent 4d20587 commit 3476eb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/system/Models/PaginateModelTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,17 @@ public function testPaginatePageOutOfRange(): void
8282

8383
public function testMultiplePager(): void
8484
{
85+
$_GET = [];
86+
8587
$validModel = $this->createModel(ValidModel::class);
8688
$userModel = $this->createModel(UserModel::class);
8789

8890
$validModel->paginate(1, 'valid');
8991
$userModel->paginate(1, 'user');
9092
$pager = $this->model->pager;
9193

94+
$this->assertSame($userModel->pager, $validModel->pager);
95+
9296
$this->assertSame(4, $validModel->countAllResults());
9397
$this->assertSame(4, $userModel->countAllResults());
9498

0 commit comments

Comments
 (0)